From 2010a2b700b268bcf12acb3d842d86efcd396173 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Mon, 15 Oct 2018 18:03:08 +0200 Subject: Add colors to console for macOS (#4303) --- src/LoggerListeners.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/LoggerListeners.cpp b/src/LoggerListeners.cpp index b49710250..0fed9e69f 100644 --- a/src/LoggerListeners.cpp +++ b/src/LoggerListeners.cpp @@ -9,7 +9,7 @@ #endif -#if defined(_WIN32) || defined (__linux) +#if defined(_WIN32) || defined (__linux) || defined (__APPLE__) class cColouredConsoleListener : public cLogger::cListener { @@ -101,11 +101,11 @@ -#elif defined (__linux) +#elif defined (__linux) || defined (__APPLE__) - class cLinuxConsoleListener + class cANSIConsoleListener : public cColouredConsoleListener { public: @@ -228,11 +228,11 @@ std::unique_ptr MakeConsoleListener(bool a_IsService) { return cpp14::make_unique(); } - #elif defined (__linux) && !defined(ANDROID) + #elif (defined (__linux) && !defined(ANDROID)) || defined (__APPLE__) // TODO: lookup terminal in terminfo if (isatty(fileno(stdout))) { - return cpp14::make_unique(); + return cpp14::make_unique(); } else { -- cgit v1.2.3