From c124576a4dc00e31ad5cad118098f46eaa29cd17 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sun, 1 Sep 2019 17:47:14 +0200 Subject: change text color in FATAL, ABORT and PFATAL macros for the actual message to avoid white text on white background (as is standard in plain X11 xterm). Now the text will be printed in default text color (which should be always readable) --- debug.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'debug.h') diff --git a/debug.h b/debug.h index a943a573..c0044280 100644 --- a/debug.h +++ b/debug.h @@ -198,7 +198,7 @@ #define FATAL(x...) do { \ SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD "\n[-] PROGRAM ABORT : " \ - cBRI x); \ + cRST x); \ SAYF(cLRD "\n Location : " cRST "%s(), %s:%u\n\n", \ __FUNCTION__, __FILE__, __LINE__); \ exit(1); \ @@ -208,7 +208,7 @@ #define ABORT(x...) do { \ SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD "\n[-] PROGRAM ABORT : " \ - cBRI x); \ + cRST x); \ SAYF(cLRD "\n Stop location : " cRST "%s(), %s:%u\n\n", \ __FUNCTION__, __FILE__, __LINE__); \ abort(); \ @@ -219,7 +219,7 @@ #define PFATAL(x...) do { \ fflush(stdout); \ SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD "\n[-] SYSTEM ERROR : " \ - cBRI x); \ + cRST x); \ SAYF(cLRD "\n Stop location : " cRST "%s(), %s:%u\n", \ __FUNCTION__, __FILE__, __LINE__); \ SAYF(cLRD " OS message : " cRST "%s\n", strerror(errno)); \ -- cgit 1.4.1