Package: colorgcc Version: 1.3.2.0-4 Severity: wishlist Hi,
I'd like have a way to force colors, i.e. calling gcc with a pipe and
getting colors. less, e.g., can show colors. I would propose this patch:
--- /tmp/gcc 2006-01-17 07:44:50.104560992 +0100
+++ /home/joerg/bin/gcc 2006-01-17 07:47:17.000000000 +0100
@@ -236,7 +236,7 @@
# If it's in the list of terminal types not to color, or if
# we're writing to something that's not a tty, don't do color.
-if (! -t STDOUT || $nocolor{$terminal})
+if (! $ENV{"CGCC_FORCE_COLOR"} && (! -t STDOUT || $nocolor{$terminal}))
{
exec $compiler, @ARGV
or die("Couldn't exec");
With it I can call "CGCC_FORCE_COLOR=1 make aufgabe1 2>&1 |less -R" and
have colors and the advantages of less.
Bye, Jörg.
-- System Information:
Debian Release: unstable/experimental
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.13.1
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Versions of packages colorgcc depends on:
ii perl 5.8.7-10 Larry Wall's Practical Extraction
ii perl-modules 5.8.7-10 Core Perl modules
colorgcc recommends no packages.
-- no debconf information
pgpkOmLcmQiNA.pgp
Description: PGP signature

