Linux color redirection fixed.
Outputting to stdin, yeah, right, that's gonna work :P
This commit is contained in:
parent
19781ecad5
commit
15f80e0811
@ -52,7 +52,7 @@ cMCLogger::cMCLogger(void)
|
|||||||
g_DefaultConsoleAttrib = sbi.wAttributes;
|
g_DefaultConsoleAttrib = sbi.wAttributes;
|
||||||
}
|
}
|
||||||
#elif defined (__linux) && !defined(ANDROID_NDK)
|
#elif defined (__linux) && !defined(ANDROID_NDK)
|
||||||
g_ShouldColorOutput = isatty(fileno(stdin));
|
g_ShouldColorOutput = isatty(fileno(stdout));
|
||||||
// TODO: Check if the terminal supports colors, somehow?
|
// TODO: Check if the terminal supports colors, somehow?
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user