HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
Setting Margins
smgl Set left margin at current column
smgr Set right margin at current column
smgb Set bottom margin at current line
smgt Set top margin at current line
smgbp Set bottom margin at line N
smglp Set left margin at column N
smgrp Set right margin at column N
smgtp Set top margin at line N
The last four strings are used with one or more arguments that give the position of the margin or margins
to set. If both of smglp and smgrp are set, each is used with a single argument, N, that gives the column
number of the left and right margin, respectively. If both of smgtp and smgbp are set, each is used to set
the top and bottom margin, respectively: smgtp is used with a single argument, N, the line number of the
top margin; however, smgbp is used with two arguments, N and M, that give the line number of the bot-
tom margin, the first counting from the top of the page and the second counting from the bottom. This
accommodates the two styles of specifying the bottom margin in different manufacturers’ printers. When
coding a terminfo entry for a printer that has a settable bottom margin, only the first or second argu-
ment should be used, depending on the printer. When writing an application that uses smgbp to set the
bottom margin, both arguments must be given.
If only one of smglp and smgrp is set, then it is used with two arguments, the column number of the left
and right margins, in that order. Likewise, if only one of smgtp and smgbp is set, then it is used with two
arguments that give the top and bottom margins, in that order, counting from the top of the page. Thus
when coding a terminfo entry for a printer that requires setting both left and right or top and bottom
margins simultaneously, only one of smglp and smgrp or smgtp and smgbp should be defined; the other
should be left blank. When writing an application that uses these string capabilities, the pairs should be
first checked to see if each in the pair is set or only one is set, and should then be used accordingly.
In counting lines or columns, line zero is the top line and column zero is the left-most column. A zero value
for the second argument with smgbp means the bottom line of the page.
All margins can be cleared with mgc.
Shadows, Italics, Wide Characters, Superscripts, Subscripts
Five sets of strings describe the capabilities printers have of enhancing printed text.
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".
HP-UX 11i Version 3: February 2007 31 Hewlett-Packard Company 515