Smart color handling:
* if on Windows, no color, as usual * if on Linux, color only on real term * no color when > foo * no color in the logfile
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include "proxmark3.h"
|
||||
#include "apps.h"
|
||||
#include "parity.h"
|
||||
#include "commonutil.h"
|
||||
#include "util.h"
|
||||
#include "string.h"
|
||||
#include "iso14443a.h"
|
||||
#include "crapto1/crapto1.h"
|
||||
|
||||
@@ -12,18 +12,13 @@
|
||||
#define __UTIL_H
|
||||
|
||||
#include "common.h"
|
||||
#include "commonutil.h"
|
||||
#include "proxmark3.h"
|
||||
#include "string.h"
|
||||
#include "BigBuf.h"
|
||||
#include "ticks.h"
|
||||
|
||||
// Basic macros
|
||||
# define _BLUE_(s) "\x1b[34m" s "\x1b[0m "
|
||||
# define _RED_(s) "\x1b[31m" s "\x1b[0m "
|
||||
# define _GREEN_(s) "\x1b[32m" s "\x1b[0m "
|
||||
# define _YELLOW_(s) "\x1b[33m" s "\x1b[0m "
|
||||
# define _MAGENTA_(s) "\x1b[35m" s "\x1b[0m "
|
||||
# define _CYAN_(s) "\x1b[36m" s "\x1b[0m "
|
||||
|
||||
#ifndef SHORT_COIL
|
||||
#define SHORT_COIL() LOW(GPIO_SSC_DOUT)
|
||||
|
||||
Reference in New Issue
Block a user