Hi, If I compile a C/C++ source file from Emacs and the compilation results in errors or warnings I see a mess (in Emacs) since all the color characters are not filtered. (Emacs can do its own color stuff for compilation)
I saw in /etc/colorgcc that the when the terminal is "emacs" or "dumb" no color codes emitted but in my emacs (emacs-21.2-2mdk) the "TERM" environment variable is still "linux". (I typed "M-x compile RET gcc -c hello.cpp RET". In shell mode inside emacs the terminal is "dumb") I tried to skip (in colorgc source code) colors if STDERR (and not just STDOUT) is a tty but this didn't help. I can bypass this of cource by calling gcc-3.1 instead of just gcc but this is not natural and we still have the problems in Makefiles (i.e run make from emacs). Another option is uninstalling colorgcc but I find the colors in consoles nice and useful. Eyal.