about summary refs log tree commit diff
path: root/include/config.h
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-12-18 21:10:39 +0100
committerhexcoder- <heiko@hexco.de>2020-12-18 21:10:39 +0100
commit12ebb351dc2b5655b4174539e2b9ee59e4acf893 (patch)
treeed66d2b7f4e8d6d1a7f2ff0d9b44a1eb9af39c99 /include/config.h
parent73dd6d86abc16c2ceb5529f3a261724be8b7896a (diff)
downloadafl++-12ebb351dc2b5655b4174539e2b9ee59e4acf893.tar.gz
apply nocolor changes
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 1eb6bc5e..d57ef223 100644
--- a/include/config.h
+++ b/include/config.h
@@ -36,11 +36,27 @@
  *                                                    *
  ******************************************************/
 
+/* console output colors: There are three ways to configure its behavior
+ * 1. default: colored outputs fixed on: defined USE_COLOR && defined ALWAYS_COLORED
+ *    The env var. AFL_NO_COLOR will have no effect
+ * 2. defined USE_COLOR && !defined ALWAYS_COLORED
+ *    -> depending on env var AFL_NO_COLOR=1 colors can be switched off
+ *    at run-time. Default is to use colors.
+ * 3. colored outputs fixed off: !defined USE_COLOR
+ *    The env var. AFL_NO_COLOR will have no effect
+*/
+
 /* Comment out to disable terminal colors (note that this makes afl-analyze
    a lot less nice): */
 
 #define USE_COLOR
 
+#ifdef USE_COLOR
+/* Comment in to always enable terminal colors */
+/* Comment out to enable runtime controlled terminal colors via AFL_NO_COLOR */
+#define ALWAYS_COLORED  1
+#endif
+
 /* StatsD config
    Config can be adjusted via AFL_STATSD_HOST and AFL_STATSD_PORT environment
    variable.