mozilla/rust — pull request #3035 by dgryski (2012-07-26 22:28:45+00:00)
Title: Only print colored error messages if the output is going to the screen

Most tools print color if isatty() returns true. This patch adds an io::writer.get_type() method that gives hints as to the underlying writer type. The diagnostics code then uses this to determine if it should print in colour or not.