Ask a Question related to PERL Miscellaneous, Design and Development.
-
Garry Short #1
Re: Send color text to printer
Joe,
this is the same question you posted on July 31st. If you didn't get any
replies then, you're not likely to now, either. I'd suggest assuming now
that no-one here has anything relevant to say on this.
If there is an alternate module, it'll be on CPAN - go have a look.
Regards,
Garry
Joe Hasting wrote:
> I have been using the Term::ANSIColor to display color on my screen, but I
> would like to direct this color to a printer. I try to print it directly
> (see example below) but it just prints the ANSI escape sequences as
> regular
> text. Could anyone say if there is an alternate MODULE or another
> technique to print in color?
>
> thanks
> J
>
>
> 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);Garry Short Guest
-
Send direclty to printer
I have an ASP that pulls several records back from a MSSQL database via VB script. I'm trying to create a link that I can place at the end of each... -
Fonts get funky when I send a PC PDF file to a printer with a MAC-based system
When I prepare a PC PDF file to go to a printer the fonts "default" ( some of the text, not all is uneven) when a printer with a Mac-based system... -
Send Documents to Printer
I have a series of hyperlinks on my page which open up documents. Mainly pdfs. Can anyone tell me if it is possible to send these straight to... -
b&w printing with 4 color printer
I am needing to make some reasonably good 8x10 black and white prints from scanned photographs. I tried every possible combination of color space,... -
Send to Printer Option???
Hello all- I am interested in putting in a 'print' button onto my page....how do I go about doing this??? --> on a side note....I have a link... -
A. Sinan Unur #2
Re: Send color text to printer
"Joe Hasting" <hasting@agere.com> wrote in
news:bgofen$71r$1@alageremail2.agere.com:
You could write an ANSI terminal driver for your printer ...> I have been using the Term::ANSIColor to display color on my screen,
> but I would like to direct this color to a printer. I try to print it
> directly (see example below) but it just prints the ANSI escape
> sequences as regular text. Could anyone say if there is an alternate
> MODULE or another technique to print in color?
I keep seeing your posts and I am completely baffled as to why you think
sending ANSI sequences to the printer should do anything.
(goes away and googles a bit and comes back)
Oh, so Amiga used to have ANSI printer drivers huh? Did not know that.
Without knowing your specific context, I am going to suggest generating
HTML, and printing that.
Sinan.
--
A. Sinan Unur
[email]asu1@c-o-r-n-e-l-l.edu[/email]
Remove dashes for address
Spam bait: mailto:uce@ftc.gov
A. Sinan Unur Guest



Reply With Quote

