Don't generate colorized output escapes when stderr isn't a TTY.

When piping to a pile, more/less, etc, this is generally undesirable.

This behavior can be overridden with the --colorized-output command-line
flag.
This commit is contained in:
Matt Pharr
2012-06-04 09:20:57 -07:00
parent 6118643232
commit 1397dbdabc
4 changed files with 15 additions and 0 deletions

View File

@@ -578,6 +578,7 @@ Globals::Globals() {
disableWarnings = false;
warningsAsErrors = false;
quiet = false;
forceColoredOutput = false;
disableLineWrap = false;
emitPerfWarnings = true;
emitInstrumentation = false;