Creating Device Descriptions (contd)
Tabs and Margins
Table 3-18 lists the capabilities used to control margins and tabs on
the terminal.
Table 3-18. Margins and Tabs
----------------------------------------------------------------------------------------------
| | | |
| Capability | Variable | Description |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| cbt= | back_tab | Back tab |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| ht= | tab | Tab to next eight space |
| | | hardware tab stop |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| hts= | set_tab | Set a tab in all rows, |
| | | current column |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| it# | init_tabs | Number of spaces between |
| | | initial tabs |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| mgc= | clear_margins | Clear all margins top, |
| | | bottom, |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smgb= | set_bottom_margin | Set bottom margin at current |
| | | line |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smgbp= | set_bottom_margin_parm | Set bottom margin at line #1 |
| | | or #2 from bottom |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smgl= | set_left_margin | Set left margin at current |
| | | column |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smglp= | set_left_margin_parm | Set left (right) margin at |
| | | column #1 (#2) |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smgr= | set_right_margin | Set right margin at current |
| | | column |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smgrp= | set_right_margin_parm | Set right margin at column |
| | | #1 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smgt= | set_top_margin | Set top margin at current |
| | | line |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smgtp= | set_top_margin_parm | Set top (bottom) margin at |
| | | line #1 (#2) |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| tbc= | clear_all_tabs | Clear all tab stops |
| | | |
----------------------------------------------------------------------------------------------
If tabs are expanded by the computer rather than sent to the device, by
convention, ht and cbt are not used because the user may not have the
tabs correctly set.
If the sequence to set tabs cannot be described adequately with tbc and
hts, it can be described with is2 or if.
The it string is normally used by tputs init to determine whether to set
the mode for hardware expansion and whether to set the tabs.
Terminal Key Capabilities
Table 3-19 lists the capabilities used to describe keys on the
terminal.
Table 3-19. Terminal Key Capabilities
----------------------------------------------------------------------------------------------
| | | |
| Capability | Variable | Description |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| k_keyname= | See Table 3-9 | See Table 3-9 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| km | has_meta_key | Terminal has meta key |
| | | (shift, sets parity bit) |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lab_function_name= | See Table 3-9 | See Table 3-9 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf0= | lab_f0 | Labels on function key f0 if |
| | | not f0 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf1= | lab_f1 | Labels on function key f1 if |
| | | not f1 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf2= | lab_f2 | Labels on function key f2 if |
| | | not f2 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf3= | lab_f3 | Labels on function key f3 if |
| | | not f3 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf4= | lab_f4 | Labels on function key f4 if |
| | | not f4 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf5= | lab_f5 | Labels on function key f5 if |
| | | not f5 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf6= | lab_f6 | Labels on function key f6 if |
| | | not f6 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf7= | lab_f7 | Labels on function key f7 if |
| | | not f7 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf8= | lab_f8 | Labels on function key f8 if |
| | | not f8 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf9= | lab_f9 | Labels on function key f9 if |
| | | not f9 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| lf10= | lab_f10 | Labels on function key f10 |
| | | if not f10 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| pfkey= | pkey_key | Prog funct key #1 to type |
| | | string #2 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| pfloc= | pkey_local | Prog funct key #1 to execute |
| | | string #2 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| pfx= | pkey_xmit | Prog funct key #1 to xmit |
| | | string #2 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| rfi= | req_for_input | Send next input character |
| | | (for ptys) |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| rmkx= | meta_off | Turn off meta mode |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smkx= | keypad_xmit | Put terminal in keypad |
| | | transmit mode |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| smm= | meta_on | Turn on meta mode (8th bit) |
| | | |
----------------------------------------------------------------------------------------------
NOTE Refer back to Table 3-9 for a complete list of all the key
capabilities.
Key capabilities describe keypads that transmit sequences of characters
when keys are pressed. Keypads that work only in local mode cannot be
described. The keypad is assumed to always transmit; if the transmit of
keys can be turned on or off, this should be specified with smkx and
rmkx, respectively.
If the first 11 function keys have labels other than the default f0
through f10, they can be described using lf0 through lf10. If the keypad
has a 3 by 3 array of keys that includes the four arrow keys, the other
keys can be described as ka1, ka3, kb2, kc1, and kc3 as shown in the
diagram below.
----------------------------------------------------------------------------------------------
| | | |
| ka1 | ^ | ka3 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| <- | kb2 | -> |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| kc1 | v | kc3 |
| | | |
----------------------------------------------------------------------------------------------