HP-UX Reference (11i v2 03/08) - 4 File Formats (vol 8)
t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
Enhanced Printing
sshm Enter shadow-printing mode
rshm Exit shadow-printing mode
sitm Enter italicizing mode
ritm Exit italicizing mode
swidm Enter wide character mode
rwidm Exit wide character mode
ssupm Enter superscript mode
rsupm Exit superscript mode
supcs List of characters available as superscripts
ssubm Enter subscript mode
rsubm Exit subscript mode
subcs List of characters available as subscripts
If a printer requires the sshm control sequence before every character to be shadow-printed, the rshm
string is left blank. Thus programs that find a control sequence in sshm but none in rshm should use
the sshm control sequence before every character to be shadow-printed; otherwise, the sshm control
sequence should be used once before the set of characters to be shadow-printed, followed by rshm. The
same is also true of each of the sitm-ritm, swidm-rwidm, ssupm-rsupm, and ssubm-rsubm pairs.
terminfo also has a capability for printing emboldened text (bold). While shadow printing and embol-
dened printing are similar in that they "darken" the text, many printers produce these two types of print
in slightly different ways. Generally, emboldened printing is done by overstriking the same character one
or more times. Shadow printing likewise usually involves overstriking, but with a slight movement up
and/or to the side so that the character is "fatter".
It is assumed that enhanced printing modes are independent modes, so that it would be possible, for
instance, to shadow print italicized subscripts.
As mentioned earlier, the amount of motion automatically made after printing a wide character should be
given in widcs.
If only a subset of the printable ASCII characters can be printed as superscripts or subscripts, they
should be listed in supcs or subcs strings, respectively. If the ssupm or ssubm strings contain con-
trol sequences, but the corresponding supcs or subcs strings are empty, it is assumed that all print-
able ASCII characters are available as superscripts or subscripts.
Automatic motion made after printing a superscript or subscript is assumed to be the same as for regular
characters. Thus, for example, printing any of the following three examples results in equivalent motion:
Bi B
i
B
i
Note that the existing msgr boolean capability describes whether motion control sequences can be used
while in "standout mode". This capability is extended to cover the enhanced printing modes added here.
msgr should be set for those printers that accept any motion control sequences without affecting shadow,
italicized, widened, superscript, or subscript printing. Conversely, if msgr is not set, a program should
end these modes before attempting any motion.
Alternate Character Sets
In addition to allowing you to define line graphics (described in the "Line Graphics" subsection of the
"Insert/Delete Character" section above), terminfo lets you define alternate character sets. The follow-
ing capabilities cover printers and terminals with multiple selectable or definable character sets:
Section 4−−340 Hewlett-Packard Company − 29 − HP-UX 11i Version 2: August 2003