Fixed bug in color support detection.

This commit is contained in:
Patrick Lühne 2016-11-24 15:01:15 +01:00
parent c92de5e461
commit f6e6b6fd60
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -50,7 +50,7 @@ class ColorStream
return true; return true;
if (&m_stream == &std::cout) if (&m_stream == &std::cout)
return isatty(fileno(stdin)); return isatty(fileno(stdout));
if (&m_stream == &std::cerr) if (&m_stream == &std::cerr)
return isatty(fileno(stderr)); return isatty(fileno(stderr));