System Administration Guide
Chapter 4, Managing printers and print jobs

Adding a printer entry to the terminfo database

Adding a printer entry to the terminfo database

To create a terminfo entry for your printer: 

  1. Identify an entry in the /usr/lib/terminfo/terminfo.lp file that uses the same or similar commands as the printer you are adding and copy that information to filename, where filename is the file containing the terminfo entry you created for the printer.

  2. Use the information in the manual for your printer, Table 4-7, and the terminfo(M) manual page to modify the entry in filename.

  3. Once you create the new entry, compile it into the database:

    tic filename 

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
    daisy          printer needs operator to change character set

    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

    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: