summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2017-05-18 13:35:56 -0700
committerEd Tanous <ed.tanous@intel.com>2017-05-18 13:35:56 -0700
commit620ec59339a89fababa81d36bad71a9651f4299c (patch)
treef3ebde99614a2420244679bc560fb507dc99d5e6 /include
parent80af6004d79308340929aad93f9d254e3558a814 (diff)
downloadbmcweb-620ec59339a89fababa81d36bad71a9651f4299c.tar.gz
bmcweb-620ec59339a89fababa81d36bad71a9651f4299c.zip
incremental
Diffstat (limited to 'include')
-rw-r--r--include/color_cout_g3_sink.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/color_cout_g3_sink.hpp b/include/color_cout_g3_sink.hpp
index 5fb5bf4..1ea35d6 100644
--- a/include/color_cout_g3_sink.hpp
+++ b/include/color_cout_g3_sink.hpp
@@ -3,7 +3,7 @@ namespace crow {
struct ColorCoutSink {
// Linux xterm color
// http://stackoverflow.com/questions/2616906/how-do-i-output-coloured-text-to-a-linux-terminal
- enum FG_Color { YELLOW = 33, RED = 31, GREEN = 32, WHITE = 97 };
+ enum FG_Color { YELLOW = 33, RED = 31, GREEN = 32, WHITE = 97, DEFAULT = 39 };
FG_Color GetColor(const LEVELS level) const {
if (level.value == WARNING.value) {
@@ -24,7 +24,7 @@ struct ColorCoutSink {
auto color = GetColor(level);
std::cout << "\033[" << color << "m" << logEntry.get().toString()
- << "\033[m";
+ << "\033[0m";
}
};
} \ No newline at end of file
OpenPOWER on IntegriCloud