Review Request: Enable kDebug/kWarning/kError colors when sending output to file instead of tty

Sergio Luis Martins iamsergio at
Thu Feb 17 20:49:16 GMT 2011

This is an automatically generated e-mail. To reply, visit:

Review request for kdelibs.


The existing KDE_COLOR_DEBUG env variable enables colors for output sent to a tty.

This patch introduces a new variable, KDE_COLOR_DEBUG_ANY_FD, which enables colors sent to any file descriptor, not only terminals.

Use case:

I usually start the applications which I develop with &> application.log, and I need a fast way to read the logs and find any kError( colored red ) output quickly.


  kdecore/io/kdebug.cpp 210a44c 




Sergio Luis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list