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;