Forcing Colored Output

Ovid publiustemp-tapx at yahoo.com
Tue Feb 19 11:13:18 UTC 2008


Pursuant to comments here:

  http://www.perlmonks.org/?node_id=667414

Since '--color' is the default, people never specify it.  It might be
nice if specifying that *forced* color and we don't try to check if the
output is a TTY.  That way, someone can pipe to 'less -r' and still get
the nicely colored output.

'ack' already allows this (though it still reformats output when piped
to less).

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/


More information about the tapx-dev mailing list