[Next] [Previous] [Up] [Top] [Contents]

25.2 SunOS 5.X

25.2.3 Printer Initialization

The descriptive file for the printers use the terminfo database in /usr/share/lib/terminfo with the file in the subdirectory beginning with the first character of the printer name. So for a PostScript printer named PS the description file is /usr/share/lib/terminfo/P/PS. Using infocmp we can examine the contents of this file:

# infocmp PS
# Reconstructed via infocmp from file: /usr/share/lib/terminfo/P/PS
PS|PSR|PS-b|PS-r|PS-br|Fake PostScript entry,
cols#80, lines#66,
cpi=null, csnm=^D, lpi=null, scs=^D, slines=^D, u9=^D,

The interface programs to initialize local printers are found in /usr/lib/lp/model. A standard initialization script is supplied called standard, which takes its initialization information from the terminfo database. This program initializes the printer port, uses stty to configure the line settings, sends the appropriate control sequences to the printer, and sets printer parameters such as whether or not to print a banner page.


Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]