1
0

Linux color redirection fixed.

Outputting to stdin, yeah, right, that's gonna work :P
This commit is contained in:
madmaxoft 2013-08-10 13:07:49 +02:00
parent 19781ecad5
commit 15f80e0811

View File

@ -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
}