[nflug] printing color terminal output

Darin Perusich Darin.Perusich at cognigencorp.com
Fri Apr 18 14:38:12 EDT 2008


I'm trying to pipe it to the printer. I've tried piping the output 
directly to lp|lpr, a2ps with various options and encodings, various 
text 2 whatever utilities to no avail.

Joshua Johnson wrote:
> How are you sending it to the printer? Are you just piping the output to it?
> 
> 
> On Fri, Apr 18, 2008 at 12:11 PM, Darin Perusich 
> <Darin.Perusich at cognigencorp.com 
> <mailto:Darin.Perusich at cognigencorp.com>> wrote:
> 
>     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 <mailto:darinper at cognigencorp.com>
>     _______________________________________________
>     nflug mailing list
>     nflug at nflug.org <mailto:nflug at nflug.org>
>     http://www.nflug.org/mailman/listinfo/nflug
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug

-- 
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