HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)
t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
Media copy strings which control an auxiliary printer connected to the terminal can be given as:
mc0 Print the contents of the screen.
mc4 Turn off the printer.
mc5 Turn on the printer.
When the printer is on, all text sent to the terminal will be sent to the printer. A variation, mc5p, takes
one argument, and leaves the printer on for as many characters as the value of the argument, then turns
the printer off. The argument should not exceed 255. If the text is not displayed on the terminal screen
when the printer is on, specify mc5i (silent printer). All text, including mc4, is transparently passed to
the printer while an mc5p is in effect.
Special Cases
The working model used by terminfo fits most terminals reasonably well. However, some terminals do
not completely match that model, requiring special support by terminfo. These are not meant to be con-
strued as deficiencies in the terminals; they are just differences between the working model and the actual
hardware. They may be unusual devices or, for some reason, do not have all the features of the terminfo
model implemented.
Terminals that cannot display tilde (˜) characters, such as certain Hazeltine terminals, should indicate hz.
Terminals that ignore a line feed immediately after an am wrap, such as the Concept 100, should indicate
xenl. Those terminals whose cursor remains on the right-most column until another character has been
received, rather than wrapping immediately upon receiving the right-most character, such as the VT100,
should also indicate xenl.
If el is required to get rid of standout (instead of writing normal text on top of it), xhp should be given.
Those Teleray terminals whose tabs turn all characters moved over to blanks, should indicate xt (destruc-
tive tabs). This capability is also taken to mean that it is not possible to position the cursor on top of a
"magic cookie". Therefore, to erase standout mode, it is necessary, instead, to use delete and insert line.
For Beehive Superbee terminals that do not transmit the escape or control-C characters, specify xsb, indi-
cating that the f1 key is to be used for escape and the f2 key for control-C.
Similar Terminals
If there are two similar terminals, one can be defined as being just like the other with certain exceptions.
The string capability use can be given with the name of the similar terminal. The capabilities given before
use override those in the terminal type invoked by use. A capability can be canceled by placing
capability-name@ prior to the appearance of the string capability use. For example, the entry:
att4424-2|Teletype 4424 in display function group ii,
rev@, sgr@, smul@, use=att4424,
defines an AT&T 04424 terminal that does not have the rev, sgr, and smul capabilities, and hence can-
not do highlighting. This is useful for different modes for a terminal, or for different user preferences.
More than one use capability may be given.
Printer Capabilities
The terminfo database lets you define capabilities of printers as well as terminals. Capabilities available
for printers are included in the lists in the Defined Capabilities section above.
Rounding Values
Because argumentized string capabilities work only with integer values, terminfo designers should create
strings that expect numeric values that have been rounded. Application designers should note this and
should always round values to the nearest integer before using them with a argumentized string capability.
Printer Resolution
A printer’s resolution is defined to be the smallest spacing of characters it can achieve. In general, the hor-
izontal and vertical resolutions are independent. Thus the vertical resolution of a printer can be deter-
mined by measuring the smallest achievable distance between consecutive printing baselines, while the hor-
izontal resolution can be determined by measuring the smallest achievable distance between the leftmost
edges of consecutive printed, identical, characters.
All printers are assumed to be capable of printing with a uniform horizontal and vertical resolution. The
view of printing that terminfo currently presents is one of printing inside a uniform matrix: All charac-
ters are printed at fixed positions relative to each "cell" in the matrix; furthermore, each cell has the same
510 Hewlett-Packard Company − 26 − HP-UX 11i Version 3: February 2007