Author: miguel
Date: 2007-12-21 17:33:55 -0500 (Fri, 21 Dec 2007)
New Revision: 91795

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/report.cs
Log:
Require a prefix

Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2007-12-21 22:18:40 UTC (rev 91794)
+++ trunk/mcs/mcs/ChangeLog     2007-12-21 22:33:55 UTC (rev 91795)
@@ -1,3 +1,8 @@
+2007-12-21  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * report.cs (ErrorMessage): Add support for using colors on
+       terminals that support it. 
+
 2007-12-21  Marek Safar  <[EMAIL PROTECTED]>
 
        * ecore.cs: Use information about expanded params for error reporting.

Modified: trunk/mcs/mcs/report.cs
===================================================================
--- trunk/mcs/mcs/report.cs     2007-12-21 22:18:40 UTC (rev 91794)
+++ trunk/mcs/mcs/report.cs     2007-12-21 22:33:55 UTC (rev 91795)
@@ -482,12 +482,17 @@
                                }
                                string config = 
Environment.GetEnvironmentVariable ("MCS_COLORS");
                                if (config == null){
-                                       config = "red";
+                                       config = "errors=red";
                                        //config = "brightwhite,red";
                                }
 
                                if (config == "disable")
                                        return;
+
+                               if (!config.StartsWith ("errors"))
+                                       return;
+
+                               config = config.Substring (7);
                                
                                if (!xterm_colors)
                                        return;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to