[PATCH 1/3] tracedump: Don't use color when stdout is not a tty

Carl Worth cworth at cworth.org
Wed Oct 19 18:32:30 PDT 2011


On Wed, 19 Oct 2011 23:56:10 +0200, José Fonseca <jose.r.fonseca at gmail.com> wrote:
> I agree this is preferable as a default behavior, but I'd like to be
> able to force color, even on non-tty pipe (e.g., "tracedump foo.trace
> | less -R", which I often use).   I think the best would be to mimic
> grep's --color/colour=WHEN option:

Good point. I'll follow up with a patch that does that soon, (pending
some other more interesting changes which I'll mention in some separate
mails).

-Carl

-- 
carl.d.worth at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/apitrace/attachments/20111019/45eae517/attachment.pgp>


More information about the apitrace mailing list