aboutsummaryrefslogtreecommitdiffstats
path: root/reporthandler.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-19 15:11:36 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:08 -0300
commit729bb0a501941a7b6bb85995d4e1263567017ec3 (patch)
treeeca3cc419d34c72ba5c78c8013974e4b6d06bc3a /reporthandler.cpp
parentde371608299b190ba310923a99ef2619bf632cd3 (diff)
Colored output is disabled by default on Windows.
Define the NOCOLOR constant to disable it in other systems. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'reporthandler.cpp')
-rw-r--r--reporthandler.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/reporthandler.cpp b/reporthandler.cpp
index 22f7da6b..471f008e 100644
--- a/reporthandler.cpp
+++ b/reporthandler.cpp
@@ -29,16 +29,16 @@
#include <cstdarg>
#include <cstdio>
-#ifndef NOCOLOR
-#define COLOR_END "\033[0m"
-#define COLOR_WHITE "\033[1;37m"
-#define COLOR_YELLOW "\033[1;33m"
-#define COLOR_GREEN "\033[0;32m"
+#if _WINDOWS || NOCOLOR
+ #define COLOR_END ""
+ #define COLOR_WHITE ""
+ #define COLOR_YELLOW ""
+ #define COLOR_GREEN ""
#else
-#define COLOR_END ""
-#define COLOR_WHITE ""
-#define COLOR_YELLOW ""
-#define COLOR_GREEN ""
+ #define COLOR_END "\033[0m"
+ #define COLOR_WHITE "\033[1;37m"
+ #define COLOR_YELLOW "\033[1;33m"
+ #define COLOR_GREEN "\033[0;32m"
#endif
static bool m_silent = false;