diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-16 00:45:44 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-16 00:45:44 +0100 |
commit | 884c7d772da6ad9869866f8a7a15bd08a15376ba (patch) | |
tree | 1b1fa2eb0f1e5286f9ac65f02605dbb4600c5960 | |
parent | 0e0fe48f951409968492f01c044ae79304dab697 (diff) |
Cosmetic change: Colorful error messages even if STDOUT is not a tty
-rw-r--r-- | src/cli/Main.cpp | 2 |
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 |