[nflug] printing color terminal output
Darin Perusich
Darin.Perusich at cognigencorp.com
Fri Apr 18 12:11:38 EDT 2008
I'm using a color diff utility called dwdiff to colorize the differences
between two files, it works perfectly. Now I'd like to send that
colorized output to a color printer but instead of printing the colored
text the ascii codes for the colors are printing. Any thoughts on how I
can get around this?
This is an example the number "1:47.01" is red and "1:47.30" is green
but the printed text is like the second line.
Run Time: 1:47.01 1:47.30
Run Time: ^[[0;31;1m1:47.01^[[0m ^[[0;32;1m1:47.30^[[0m
Thanks
--
Darin Perusich
Unix Systems Administrator
Cognigen Corporation
395 Youngs Rd.
Williamsville, NY 14221
Phone: 716-633-3463
Email: darinper at cognigencorp.com
More information about the nflug
mailing list