Printers, adding new (SVR5)
This article summarizes how
to add support for a new printer to the SVR5 printer subsystem.
``Adding a new printer type''
for more information.
Create a private file for the printer
that contains the information required for the
The ``key'', ``interface'',
and ``name'' fields are mandatory;
most printers should define all fields.
script that defines the printer's features.
utility to compile the terminfo entry
into terminfo format.
One entry is created for each of the aliases generated.
By default, these entries are placed in
the /usr/share/lib/terminfo directory tree,
in the subdirectory that corresponds to
the first letter or number of the alias name.
For printers that provide capabilities
beyond the basic ones,
create a Printer Interface Script
using the routines documented on the
Use the /etc/lp/mode/standard file
as a model;
all Printer Interface Scripts must support
all the basic options defined in the standard file.
If necessary, create a printer filter
to convert the content type of a file
to a type acceptable to a printer.
For example, the PS filter
passes postscript output directly to the printer
instead of processing a print job as if it were plain text
and converting it to postscript.
Filters can be created in any programming language,
including shell scripts.
The print service is notified of new supported filters with the
To create an installable driver package,
write a postinstall script
that writes the private file
created in step 1 to the end of the
Any scripting language can be used,
but SCO recommends using OSA VTCL ;
Developing Visual Tcl applications.
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005