mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix garbled log output in Xcode terminal
This commit is contained in:
parent
fc18a171a7
commit
eb89c9be1e
1 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,10 @@ ConsoleListener::ConsoleListener() : bHidden(true)
|
|||
bUseColor = false;
|
||||
#elif defined(_MSC_VER)
|
||||
bUseColor = false;
|
||||
#elif defined(__APPLE__)
|
||||
// Xcode builtin terminal used for debugging does not support colours.
|
||||
// Fortunately it can be detected with a TERM env variable.
|
||||
bUseColor = isatty(fileno(stdout)) && getenv("TERM") != NULL;
|
||||
#else
|
||||
bUseColor = isatty(fileno(stdout));
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue