diff --git a/client/ui.c b/client/ui.c index f3a622fbe..d4a012e85 100644 --- a/client/ui.c +++ b/client/ui.c @@ -71,6 +71,9 @@ void PrintAndLogEx(logLevel_t level, char *fmt, ...) { case SUCCESS: strncpy(prefix,_GREEN_([+] ), sizeof(prefix)-1); break; + case WARNING: + strncpy(prefix,_CYAN_([+] ), sizeof(prefix)-1); + break; default: strncpy(prefix, prefixes[level], sizeof(prefix)-1); break; diff --git a/client/util.h b/client/util.h index 997997d55..fb559ea1d 100644 --- a/client/util.h +++ b/client/util.h @@ -160,6 +160,18 @@ # define _YELLOW_(s) #s " " #endif +#if defined(__linux__) || (__APPLE__) +# define _MAGENTA_(s) "\x1b[35m" #s "\x1b[0m " +#else +# define _MAGENTA_(s) #s " " +#endif + +#if defined(__linux__) || (__APPLE__) +# define _CYAN_(s) "\x1b[36m" #s "\x1b[0m " +#else +# define _CYAN_(s) #s " " +#endif + #ifndef DropField #define DropField() { \ UsbCommand c = {CMD_READER_ISO_14443a, {0,0,0}}; clearCommandBuffer(); SendCommand(&c); \