From f6e6b6fd60932e4ee2f1f1c3081382d8c0c6f403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Thu, 24 Nov 2016 15:01:15 +0100 Subject: [PATCH] Fixed bug in color support detection. --- include/anthem/output/ColorStream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/anthem/output/ColorStream.h b/include/anthem/output/ColorStream.h index dd5928a..3463b6e 100644 --- a/include/anthem/output/ColorStream.h +++ b/include/anthem/output/ColorStream.h @@ -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));