Package: colorgcc
Version: 1.3.2.0-10

When I invoke colorgcc with an option to get information about gcc
itself I get output colorized with the 'reset' color code ESC[0m

This can be a problem is in makefiles where the information may be
parsed so set options for make, e.g.
CCVERSIONBOOST := $(shell $(CC) -dumpversion | cut -c 1,3)

I would suggest that the fix for this would be not to print the reset
code on normal lines, because it seems that all the other colorizing
options reset the colors after they have printed, i.e.:

$ diff -u ~/bin/colorgcc_1.3.2.0-10 ~/bin/colorgcc_1.3.2.0-10-edited
--- /home/dan/bin/colorgcc_1.3.2.0-10     2011-11-18 14:56:59.338531000 +0000
+++ /home/dan/bin/colorgcc_1.3.2.0-10-edited  2011-11-18
14:57:04.222081000 +0000
@@ -321,7 +321,7 @@
    else # Anything else.
    {
       # Doesn't seem to be a warning or an error. Print normally.
-      print(color("reset"), $_);
+      print($_);
    }
 }



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to