J
Joe Hasting
I have been using Term::ANSIColor to have printed charaters on my screen,
how can I direct the ANSI escaped code to a color printer directly and have
it print in color (not print the ANSI escape codes). I tried the simple
code below. The first page comes out ok, but the second page is printed
with the escape codes. Thanks J
--------------
31;40mtest
0m32;41mtest
0m
----------------
use Term::ANSIColor;
open(LPR, "|lpr -P agrprt166 >/dev/null 2>&1");
print LPR "test\n";
print LPR "test\n";
close(LPR);
open(LPR, "|lpr -P agrprt166 >/dev/null 2>&1");
print LPR colored ("test\n", "red on_black");
print LPR colored ("test\n", "green on_red");
close(LPR);
how can I direct the ANSI escaped code to a color printer directly and have
it print in color (not print the ANSI escape codes). I tried the simple
code below. The first page comes out ok, but the second page is printed
with the escape codes. Thanks J
--------------
31;40mtest
0m32;41mtest
0m
----------------
use Term::ANSIColor;
open(LPR, "|lpr -P agrprt166 >/dev/null 2>&1");
print LPR "test\n";
print LPR "test\n";
close(LPR);
open(LPR, "|lpr -P agrprt166 >/dev/null 2>&1");
print LPR colored ("test\n", "red on_black");
print LPR colored ("test\n", "green on_red");
close(LPR);