Operating System - HP-UX
1758535 Members
1723 Online
108872 Solutions
New Discussion

Re: Printing via terminal

 
SOLVED
Go to solution
Rumen Ginev
Frequent Advisor

Printing via terminal

Hi!

The situation:
PC, VT220 terminal emulation, localy attached EPSON LX300.
No problems with printing a file from the HP-UX box on the EPSON .
But I can't change the default printer settings by sending control codes.
1. Open the lpt port on the terminal:
$echo "\033[5i" > /dev/ttyxxx
(from http://vt100.net/docs/vt220-rm )
2. Printing:
$ cat file > /dev/ttyxxx
3. Closing the lpt port:
$echo "\033[4i" > /dev/ttyxxx

When try to send escape sequence to the printer (something like:
$echo "\017" > /dev/ttyxx
between 1. and 2.) it seems the terminal "filters" and sends them like normal printing characters. So the printer continues with the default settings.
(In the example "\017" says "print condensed".)

Any suggestions?

Thanks! Rumen
1 REPLY 1
Maureen Gunkel
Trusted Contributor
Solution

Re: Printing via terminal

Hi Rumen,
Do you have your terminal emulator set for 'pass-through' printing? I don't know if this will help, but
HTH
Mo
No matter where you go, there you are.