colors from waf => crap in log files

Achim Gratz Stromeko at nexgo.de
Sun Nov 6 07:33:49 UTC 2016


Hal Murray writes:
> 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.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves



More information about the devel mailing list