colors from waf => crap in log files

Hal Murray hmurray at
Sun Nov 6 08:02:32 UTC 2016

Stromeko at said:
>> I assume the default is auto. >
>> How do I find out what that really does?
> The usual thing to do is check if stdout goes to a terminal and color that
> using escape sequences pulled from terminfo.  If the output goes someplace
> else or the terminal doesn't support (enough) colors, don't emit escape
> sequences.  If you play around a bit with the TERM variable and piping /
> redirecting the output, you should see if waf is doing this. 

I was fishing for something like that, but my test cases are piping through 
tee so no terminal.

These are my opinions.  I hate spam.

More information about the devel mailing list