Fixed bug in color support detection.
This commit is contained in:
parent
c92de5e461
commit
f6e6b6fd60
@ -50,7 +50,7 @@ class ColorStream
|
||||
return true;
|
||||
|
||||
if (&m_stream == &std::cout)
|
||||
return isatty(fileno(stdin));
|
||||
return isatty(fileno(stdout));
|
||||
|
||||
if (&m_stream == &std::cerr)
|
||||
return isatty(fileno(stderr));
|
||||
|
Loading…
Reference in New Issue
Block a user