LaserWriter 16/600 PS: HP/UX PCL Printing Over TCP/IP (2/95)


I have a LaserWriter 16/600 PS connected over the network to an HP/UX 9.0.x computer. I followed the instructions in the LaserWriter manual to configure the printer under HP/UX and everything prints fine, except I need to print reports from an application in landscape format.

What's the best way to configure the printer so it can take full advantage of landscape mode? Should I set it up as a HP LaserJet using PCL?

To print to a LaserWriter 16/600 from HP/UX, you configure the printer to either auto-select, or use PCL emulation over TCP/IP.

You seem to have set up the printer queue correctly via "sam" on the HP workstation. However, to print a PCL print job from your workstation in landscape mode, you need the correct escape sequence to specifically tell the printer how to set the print job output. Use of the "lp" or "rlp" command will not make a difference.

To set the correct escape sequence to print in landscape mode, you have to know how to embed an escape sequence in a PCL job. For example, /etc/hosts tends to be an ASCII file, and you can create ASCII files like /etc/hosts, then embed the escape code in the beginning of the text. Below is the escape sequence:

^[&l1O

* The symbol "^", a carrot, in "vi" requires holding down the CONTROL-key and letter "v" at the same time.

* The symbol "[", an open bracket, can be obtained by holding down the CONTROL-key and the "{/[" key at the same time.

* The symbol "&" is SHIFT-7.

* The "l" is the lower-case letter "L".

* The "1" is a numeric one

* The "O" is upper-case letter "O"


Support Information Services
Published Date: Feb 19, 2012