Modifying Printer Attributes
Edit the customized file (/var/spool/lpd/pio/custom /var/spool/lpd/pio/@local/custom QueueName:QueueDeviceName), adding or changing the printer attributes to match the new printer.
For example, assume that you created a new
file based on the existing 4201-3 printer. The customized file for
the 4201-3 printer contains the following template that the printer
formatter uses to initialize the printer:
%I[ez,em,eA,cv,eC,eO,cp,cc, . . .
The formatter fills in the string as directed
by this template and sends the resulting sequence of commands to the
4201-3 printer. Specifically, this generates a string of escape sequences
that initialize the printer and set such parameters as vertical and
horizontal spacing and page length. You would construct a similar
command string to properly initialize the new printer and put it into
4201-emulation mode. Although many of the escape sequences might be
the same, at least one will be different: the escape sequence that
is the command to put the printer into the specific printer-emulation
mode. Assume that you added an ep attribute that specifies
the string to initialize the printer to 4201-3 emulation mode, as
follows:
\033\012\013
The Printer Initialization field will then
be:
%I[ep,ez,em,eA,cv,eC,eO,cp,cc, . . .
You must create a virtual printer for each printer-emulation mode you want to use. See Real and Virtual Printers in Printers and printing.