System Administration Guide: Printing

Required terminfo Items For a Printer

The following three tables list the terminfo items that are required for a printer.

Table 12–6 Required terminfo Items for a Printer (Booleans)

Item 

 

Description 

Booleans: 

 

 

 

cpix

Changing character pitch changes resolution 

 

daisy

Printer requires an operator to change character set 

 

lpix

Changing line pitch changes resolution 

Table 12–7 Required terminfo Items for a Printer (Numbers)

Item 

 

Description 

Numbers: 

 

 

 

bufsx

Number of bytes buffered before printing 

 

cols

Number of columns in a line 

 

cps

Average print rate in characters per second 

 

it

Tabs initially every n 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 

Table 12–8 Required terminfo Items for a Printer (Strings)

Item 

 

Description 

Strings: 

 

 

 

chr

Changes horizontal resolution 

 

cpi

Changes number of characters per inch 

 

cr

Carriage return 

 

csnm

List of character set names 

 

cudl

Moves carriage down one line 

 

cud

Moves carriage down n lines

 

cuf

Moves carriage to the right n columns

 

cvr

Changes vertical resolution 

 

ff

Ejects page 

 

hpa

Horizontal position absolute 

 

ht

Tabs to next 8-space tab stop 

 

if

Is the name of initialization file 

 

iprog

Is the path name of initialization program 

 

is1

Is a printer initialization string 

 

is2

Is a printer initialization string 

 

is3

Is a printer initialization string 

 

lpi

Changes number of lines per inch 

 

mgc

Clears all margins (top, bottom, and sides) 

 

rep

Repeats a character n times

 

rwidm

Disables double-wide printing 

 

scs

Selects character set 

 

scsd

Starts definition of a character set 

 

slines

Set page length to n lines per page

 

smgl

Sets left margin at current column 

 

smglp

Set left margin 

 

smgr

Sets right margin at current column 

 

smgrp

Sets right margin 

 

smglr

Sets both left and right margins 

 

msgt

Sets top margin at current line 

 

smgtp

Sets top margin 

 

smgb

Sets bottom margin at current line 

 

smgbp

Sets bottom margin 

 

smgtb

Sets both top and bottom margins 

 

swidm

Enables double-wide printing 

 

vpa

Sets vertical position to absolute