Specifications

6-43
System V Printer Configuration
opost Postprocess data stream as listed below:
–olcuc Do not map lower case to upper case
onlcr Map linefeed into carriage return/linefeed
–ocrnl Do not map carriage return into linefeed
–onocr Output carriage returns even at column 0
nl0 No delay after linefeeds
cr0 No delay after carriage returns
tab0 No delay after tabs
bs0 No delay after backspaces
vt0 No delay after vertical tabs
ff0 No delay after form feeds
You may find that the default characteristics are sufficient for your printers. However,
printers vary enough that you may have to set different characteristics. See the stty
command for a complete list of characteristics.
If you have a printer that requires printer port characteristics other than those handled by
the stty program, you will have to customize the interface program. See Printer Interface
Scripts on page 6-10 for help.
When you add a new printer, you may specify an additional list of port characteristics. The
list you provide will be applied after the default list so that you do not need to include in your
list items that you do not want to change. Specify the additional list as follows:
/usr/sbin/lpadmin –p printer–name –o ”stty=’ stty–option–list ’”
Note that both the double quotes and single quotes are needed if you give more than one
item in the stty–option–list.
Suppose your printer is to be used for printing graphical data, where linefeed characters
should be output alone, without an added carriage return. You would enter the following
command:
/usr/sbin/lpadmin –p printer–name –o ”stty=–onlcr”
Note that the single quotes are omitted because there is only one item in the list.
As another example, suppose your printer requires odd parity for data sent to it. You would
enter the following command:
/usr/sbin/lpadmin –p printer–name –o ”stty=’parenb parodd cs7’”
Setting Up a Printer With Multiple Names
The print service allows you to set up a single printer with multiple names to perform
multiple functions. For example, if your printer supports both portrait and landscape modes,
you can set up a different name for each function and then send jobs to each printer name.
These multiple printers are called virtual printers.
The print spooler system differentiates printers by name only, not by the device to which the
printer is connected. To specify different names for the same device and prevent multiple
print jobs from appearing simultaneously, you must set up both the real printer and
additional virtual printers. Thr real printer performs the actual printing and the virtual printers
pass print jobs to the real printer.
For example, to set up two virtual printers, port and land, that use the capabilities of a
Hewlett–Packard LaserJet, use the following procedure:
1. Set up the real printer. Specify the Name as real and set the Model to HPLaserJet.
2. Set up the port and land virtual printers. Set the Model to network. Specify the same
Device to which real is connected.