summaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-16 00:45:44 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-16 00:45:44 +0100
commit884c7d772da6ad9869866f8a7a15bd08a15376ba (patch)
tree1b1fa2eb0f1e5286f9ac65f02605dbb4600c5960 /src/cli
parent0e0fe48f951409968492f01c044ae79304dab697 (diff)
Cosmetic change: Colorful error messages even if STDOUT is not a tty
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/Main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/Main.cpp b/src/cli/Main.cpp
index d4ef45f..4e09e67 100644
--- a/src/cli/Main.cpp
+++ b/src/cli/Main.cpp
@@ -95,7 +95,7 @@ static void createOutput(Handle<Document> doc, std::ostream &out,
int main(int argc, char **argv)
{
// Initialize terminal logger. Only use color if writing to a terminal (tty)
- bool useColor = isatty(STDOUT_FILENO) && isatty(STDERR_FILENO);
+ bool useColor = isatty(STDERR_FILENO);
TerminalLogger logger{std::cerr, useColor};
// Program options