Linux color redirection fixed.
Outputting to stdin, yeah, right, that's gonna work :P
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user