From 189e047977b138b711259ad84d94471f5d006ffb Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 7 Oct 2015 13:18:37 -1000 Subject: [PATCH] Made XtermColor publicly visible --- include/LogVisor/LogVisor.hpp | 3 +++ lib/LogVisor.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/LogVisor/LogVisor.hpp b/include/LogVisor/LogVisor.hpp index 70f1e48..a1664c1 100644 --- a/include/LogVisor/LogVisor.hpp +++ b/include/LogVisor/LogVisor.hpp @@ -16,6 +16,9 @@ namespace LogVisor #define LOG_UCS2 1 #endif +/* True if ANSI color available */ +extern bool XtermColor; + /** * @brief Severity level for log messages */ diff --git a/lib/LogVisor.cpp b/lib/LogVisor.cpp index 068dca9..208fdc1 100644 --- a/lib/LogVisor.cpp +++ b/lib/LogVisor.cpp @@ -92,7 +92,7 @@ static HANDLE Term = 0; #else static const char* Term = nullptr; #endif -static bool XtermColor = false; +bool XtermColor = false; struct ConsoleLogger : public ILogger { std::mutex m;