Adding a printer entry to the terminfo database
To create a terminfo entry for your printer:
After adding or deleting terminfo entries
or changing values that govern pitch settings,
page width and length, or character sets,
stop and restart the print service.
Table 4-7 terminfo entry definitions for printers
-------------------------------------------------------------------------------
terminfo entry Description
-------------------------------------------------------------------------------
Booleans:
daisy printer needs operator to change character set
Numbers:
bufsz number of bytes buffered before printing
cols number of columns in a line
it tabs initially every # spaces
lines number of lines on a page
orc horizontal resolution in units per character
orhi horizontal resolution in units per inch
orl vertical resolution in units per line
orvi vertical resolution in units per inch
cps average print rate in characters per second
Strings:
cr carriage return
cpi change number of characters per inch
lpi change number of lines per inch
chr change horizontal resolution
cvr change vertical resolution
csnm list of character set names
mgc clear all margins (top, bottom, and sides)
hpa horizontal position absolute
cud1 down one line
cuf1 carriage right
swidm enable double-wide printing
rwidm disable double-wide printing
ff page eject
is1 printer initialization string
is2 printer initialization string
is3 printer initialization string
if name of initialization file
iprog pathname of initializing program
cud move carriage down # lines
cuf move carriage right # columns
rep repeat a character # times
vpa absolute vertical position
scs select character set
smgb set bottom margin at current line
smgbp set bottom margin
smgl set left margin at current column
smglp set left margin
smgr set right margin at current column
smgrp set right margin
smgt set top margin at current line
smgtp set top margin
scsd start definition of a character set
ht tab to next 8-space tab stop
See
terminfo(M)
for the terminfo file structure and
for information on how to construct a terminfo
database entry for a new printer.
See also: