mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
chg: tests with ansi-colors
This commit is contained in:
parent
a2ac368fdb
commit
120abf10bc
2 changed files with 25 additions and 6 deletions
|
@ -139,11 +139,30 @@
|
|||
#endif
|
||||
|
||||
#if defined(__linux__) || (__APPLE__)
|
||||
# define BLUE_MSG(s) "\e[34m" #s "\e[0m"
|
||||
# define _BLUE_(s) "\x1b[34m" #s "\x1b[0m"
|
||||
#else
|
||||
# define BLUE_MSG(s) #s
|
||||
# define _BLUE_(s) #s
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || (__APPLE__)
|
||||
# define _RED_(s) "\x1b[31m" #s "\x1b[0m"
|
||||
#else
|
||||
# define _RED_(s) #s
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || (__APPLE__)
|
||||
# define _GREEN_(s) "\x1b[32m" #s "\x1b[0m"
|
||||
#else
|
||||
# define _GREEN_(s) #s
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || (__APPLE__)
|
||||
# define _YELLOW_(s) "\x1b[33m" #s "\x1b[0m"
|
||||
#else
|
||||
# define _YELLOW_(s) #s
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef DropField
|
||||
#define DropField() { \
|
||||
UsbCommand c = {CMD_READER_ISO_14443a, {0,0,0}}; clearCommandBuffer(); SendCommand(&c); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue