From 15f80e0811fbc3a842eb29a2f203e107102935c8 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sat, 10 Aug 2013 13:07:49 +0200 Subject: Linux color redirection fixed. Outputting to stdin, yeah, right, that's gonna work :P --- source/MCLogger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/MCLogger.cpp b/source/MCLogger.cpp index 4442fc5b0..de0fcae2e 100644 --- a/source/MCLogger.cpp +++ b/source/MCLogger.cpp @@ -52,7 +52,7 @@ cMCLogger::cMCLogger(void) g_DefaultConsoleAttrib = sbi.wAttributes; } #elif defined (__linux) && !defined(ANDROID_NDK) - g_ShouldColorOutput = isatty(fileno(stdin)); + g_ShouldColorOutput = isatty(fileno(stdout)); // TODO: Check if the terminal supports colors, somehow? #endif } -- cgit v1.2.3