Red Hat Bugzilla – Bug 232994
Do not colourize printouts when redirected
Last modified: 2007-11-30 17:11:59 EST
Description of problem:
When output of Totem is redirected, it retains colored marks like "WARN",
which makes them hard to read.
Version-Release number of selected component (if applicable):
100%, but you need a way to trigger the output from the library.
Steps to Reproduce:
1. Run this:
GST_DEBUG=*:2 totem dvd://2 >totem.run 2>&1 </dev/null
2. Do something to produce "WARN"
(in case of DVD, perhaps nothing is needed, there's a ton of
"Queue is bigger than 20Mbytes"
3. Open the file totem.run in a text editor
File is full of color-changing escapes
A readable trace
This should be similar to behaviour of ls(1). The standard way to
determine if the descriptor is interactive is isatty(3). If you
use the standard I/O library, you can get the current
file descriptor with fileno(3).
This can already be achieved with "export GST_DEBUG_NO_COLOR=1".
The point of the colourised output is to be able to separate different types of
warnings and errors easily, and you can read the file with all its colours using
I would advise you to file a bug upstream against GStreamer
(http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer) if you feel strongly