When available, use ANSI escapes to colorize diagnostic output.

Issue #245.
This commit is contained in:
Matt Pharr
2012-04-19 11:36:28 -07:00
parent cc26b66e99
commit e4b3d03da5
2 changed files with 108 additions and 14 deletions

View File

@@ -17,6 +17,10 @@ import shlex
import platform
import tempfile
# disable fancy error/warning printing with ANSI colors, so grepping for error
# messages doesn't get confused
os.environ["TERM"] = "dumb"
# This script is affected by http://bugs.python.org/issue5261 on OSX 10.5 Leopard
# git history has a workaround for that issue.