Add color support for errors/warnings etc.
commitd76bdd4e7d3ff83da5f2c4943da96df7dc98d8fd
authorankit <ankit@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Sun, 11 Oct 2009 01:15:17 +0000 (11 01:15 +0000)
committerankit <ankit@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Sun, 11 Oct 2009 01:15:17 +0000 (11 01:15 +0000)
tree4553ec7d4287d165bbbb1979b464ccd789b5abea
parent65a14fe33d4599aea05856b81f27bbd410ad7663
Add color support for errors/warnings etc.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

* ConsoleLogger.cs: Use ColorSetter and ColorResetter .
Support 'XBUILD_COLORS' to set colors for errors, warnings,
events and messages.

In tools/xbuild:

* Main.cs: Add support for emitting messages in color.
Taking relevant code from mcs/report.cs . Using ANSI
color codes here instead of Console.ForegroundColor
because of a bug in Console.

git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@143902 e3ebcda4-bce8-0310-ba0a-eca2169e7518
class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/ChangeLog
class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/ConsoleLogger.cs
tools/xbuild/ChangeLog
tools/xbuild/Main.cs