_cccc_aaaa_nnnn______cccc_hhhh_aaaa_nnnn_gggg_eeee _cccc_cccc_cccc _cccc_cccc Terminal can redefine
existing color
_cccc_eeee_oooo_llll______ssss_tttt_aaaa_nnnn_dddd_oooo_uuuu_tttt______gggg_llll_iiii_tttt_cccc_hhhh _xxxx_hhhh_pppp _xxxx_ssss Standout not erased by
overwriting (hp)
_cccc_oooo_llll______aaaa_dddd_dddd_rrrr______gggg_llll_iiii_tttt_cccc_hhhh _xxxx_hhhh_pppp_aaaa _YYYY_AAAA Only positive motion for
_hhhh_pppp_aaaa/_mmmm_hhhh_pppp_aaaa caps
_cccc_pppp_iiii______cccc_hhhh_aaaa_nnnn_gggg_eeee_ssss______rrrr_eeee_ssss _cccc_pppp_iiii_xxxx _YYYY_FFFF Changing character pitch
changes resolution
_cccc_rrrr______cccc_aaaa_nnnn_cccc_eeee_llll_ssss______mmmm_iiii_cccc_rrrr_oooo______mmmm_oooo_dddd_eeee _cccc_rrrr_xxxx_mmmm _YYYY_BBBB Using _cccc_rrrr turns off micro mode
_eeee_aaaa_tttt______nnnn_eeee_wwww_llll_iiii_nnnn_eeee______gggg_llll_iiii_tttt_cccc_hhhh _xxxx_eeee_nnnn_llll _xxxx_nnnn Newline ignored after 80
columns (Concept)
_eeee_rrrr_aaaa_ssss_eeee______oooo_vvvv_eeee_rrrr_ssss_tttt_rrrr_iiii_kkkk_eeee _eeee_oooo _eeee_oooo Can erase overstrikes with a
blank
_gggg_eeee_nnnn_eeee_rrrr_iiii_cccc______tttt_yyyy_pppp_eeee _gggg_nnnn _gggg_nnnn Generic line type (_e._g.,
_hhhh_aaaa_rrrr_dddd______cccc_uuuu_rrrr_ssss_oooo_rrrr _cccc_hhhh_tttt_ssss _HHHH_CCCC Cursor is hard to see
_hhhh_aaaa_ssss______mmmm_eeee_tttt_aaaa______kkkk_eeee_yyyy _kkkk_mmmm _kkkk_mmmm Has a meta key (shift, sets
parity bit)
_hhhh_aaaa_ssss______pppp_rrrr_iiii_nnnn_tttt______wwww_hhhh_eeee_eeee_llll _dddd_aaaa_iiii_ssss_yyyy _YYYY_CCCC Printer needs operator to
change character set
_hhhh_aaaa_ssss______ssss_tttt_aaaa_tttt_uuuu_ssss______llll_iiii_nnnn_eeee _hhhh_ssss _hhhh_ssss Has extra "status line"
_hhhh_uuuu_eeee______llll_iiii_gggg_hhhh_tttt_nnnn_eeee_ssss_ssss______ssss_aaaa_tttt_uuuu_rrrr_aaaa_tttt_iiii_oooo_nnnn _hhhh_llll_ssss _hhhh_llll Terminal uses only HLS color
_nnnn_oooo_nnnn______rrrr_eeee_vvvv______rrrr_mmmm_cccc_uuuu_pppp _nnnn_rrrr_rrrr_mmmm_cccc _NNNN_RRRR _ssss_mmmm_cccc_uuuu_pppp does not reverse _rrrr_mmmm_cccc_uuuu_pppp
_nnnn_oooo______pppp_aaaa_dddd______cccc_hhhh_aaaa_rrrr _nnnn_pppp_cccc _NNNN_PPPP Pad character doesn't exist
_oooo_vvvv_eeee_rrrr______ssss_tttt_rrrr_iiii_kkkk_eeee _oooo_ssss _oooo_ssss Terminal overstrikes on
hard-copy terminal
_pppp_rrrr_tttt_rrrr______ssss_iiii_llll_eeee_nnnn_tttt _mmmm_cccc_5555_iiii _5555_iiii Printer won't echo on screen
_rrrr_oooo_wwww______aaaa_dddd_dddd_rrrr______gggg_llll_iiii_tttt_cccc_hhhh _xxxx_vvvv_pppp_aaaa _YYYY_DDDD Only positive motion for
_vvvv_pppp_aaaa/_mmmm_vvvv_pppp_aaaa caps
_ssss_eeee_mmmm_iiii______aaaa_uuuu_tttt_oooo______rrrr_iiii_gggg_hhhh_tttt______mmmm_aaaa_rrrr_gggg_iiii_nnnn _ssss_aaaa_mmmm _YYYY_EEEE Printing in last column
_ssss_tttt_aaaa_tttt_uuuu_ssss______llll_iiii_nnnn_eeee______eeee_ssss_cccc______oooo_kkkk _eeee_ssss_llll_oooo_kkkk _eeee_ssss Escape can be used on the
_bbbb_uuuu_ffff_ffff_eeee_rrrr______cccc_aaaa_pppp_aaaa_cccc_iiii_tttt_yyyy _bbbb_uuuu_ffff_ssss_zzzz _YYYY_aaaa Number of bytes buffered before
printing
_cccc_oooo_llll_uuuu_mmmm_nnnn_ssss _cccc_oooo_llll_ssss _cccc_oooo Number of columns in a line
_dddd_oooo_tttt______vvvv_eeee_rrrr_tttt______ssss_pppp_aaaa_cccc_iiii_nnnn_gggg _ssss_pppp_iiii_nnnn_vvvv _YYYY_bbbb Spacing of pins vertically in
pins per inch
_dddd_oooo_tttt______hhhh_oooo_rrrr_zzzz______ssss_pppp_aaaa_cccc_iiii_nnnn_gggg _ssss_pppp_iiii_nnnn_hhhh _YYYY_cccc Spacing of dots horizontally in
dots per inch
_iiii_nnnn_iiii_tttt______tttt_aaaa_bbbb_ssss _iiii_tttt _iiii_tttt Tabs initially every # spaces
_llll_aaaa_bbbb_eeee_llll______hhhh_eeee_iiii_gggg_hhhh_tttt _llll_hhhh _llll_hhhh Number of rows in each label
_llll_aaaa_bbbb_eeee_llll______wwww_iiii_dddd_tttt_hhhh _llll_wwww _llll_wwww Number of columns in each label
_llll_iiii_nnnn_eeee_ssss _llll_iiii_nnnn_eeee_ssss _llll_iiii Number of lines on a screen or a
page
_llll_iiii_nnnn_eeee_ssss______oooo_ffff______mmmm_eeee_mmmm_oooo_rrrr_yyyy _llll_mmmm _llll_mmmm Lines of memory if > _llll_iiii_nnnn_eeee_ssss; _0000
means varies
_mmmm_aaaa_gggg_iiii_cccc______cccc_oooo_oooo_kkkk_iiii_eeee______gggg_llll_iiii_tttt_cccc_hhhh _xxxx_mmmm_cccc _ssss_gggg Number of blank characters left
by _ssss_mmmm_ssss_oooo or _rrrr_mmmm_ssss_oooo
_mmmm_aaaa_xxxx______cccc_oooo_llll_oooo_rrrr_ssss _cccc_oooo_llll_oooo_rrrr_ssss _CCCC_oooo Maximum number of colors on the
screen
_mmmm_aaaa_xxxx______mmmm_iiii_cccc_rrrr_oooo______aaaa_dddd_dddd_rrrr_eeee_ssss_ssss _mmmm_aaaa_dddd_dddd_rrrr _YYYY_dddd Maximum value in
_mmmm_aaaa_xxxx______mmmm_iiii_cccc_rrrr_oooo______jjjj_uuuu_mmmm_pppp _mmmm_jjjj_uuuu_mmmm_pppp _YYYY_eeee Maximum value in _pppp_aaaa_rrrr_mmmm______...._...._....______mmmm_iiii_cccc_rrrr_oooo
_mmmm_aaaa_xxxx______pppp_aaaa_iiii_rrrr_ssss _pppp_aaaa_iiii_rrrr_ssss _pppp_aaaa Maximum number of color-pairs on
the screen
_mmmm_iiii_cccc_rrrr_oooo______cccc_oooo_llll______ssss_iiii_zzzz_eeee _mmmm_cccc_ssss _YYYY_ffff Character step size when in
micro mode
_mmmm_iiii_cccc_rrrr_oooo______llll_iiii_nnnn_eeee______ssss_iiii_zzzz_eeee _mmmm_llll_ssss _YYYY_gggg Line step size when in micro
mode
_nnnn_oooo______cccc_oooo_llll_oooo_rrrr______vvvv_iiii_dddd_eeee_oooo _nnnn_cccc_vvvv _NNNN_CCCC Video attributes that can't be
used with colors
_nnnn_uuuu_mmmm_bbbb_eeee_rrrr______oooo_ffff______pppp_iiii_nnnn_ssss _nnnn_pppp_iiii_nnnn_ssss _YYYY_hhhh Number of pins in print-head
_nnnn_uuuu_mmmm______llll_aaaa_bbbb_eeee_llll_ssss _nnnn_llll_aaaa_bbbb _NNNN_llll Number of labels on screen
(start at 1)
_oooo_uuuu_tttt_pppp_uuuu_tttt______rrrr_eeee_ssss______cccc_hhhh_aaaa_rrrr _oooo_rrrr_cccc _YYYY_iiii Horizontal resolution in units
per character
_oooo_uuuu_tttt_pppp_uuuu_tttt______rrrr_eeee_ssss______llll_iiii_nnnn_eeee _oooo_rrrr_llll _YYYY_jjjj Vertical resolution in units per
_oooo_uuuu_tttt_pppp_uuuu_tttt______rrrr_eeee_ssss______hhhh_oooo_rrrr_zzzz______iiii_nnnn_cccc_hhhh _oooo_rrrr_hhhh_iiii _YYYY_kkkk Horizontal resolution in units
per inch
_oooo_uuuu_tttt_pppp_uuuu_tttt______rrrr_eeee_ssss______vvvv_eeee_rrrr_tttt______iiii_nnnn_cccc_hhhh _oooo_rrrr_vvvv_iiii _YYYY_llll Vertical resolution in units per
inch
_pppp_aaaa_dddd_dddd_iiii_nnnn_gggg______bbbb_aaaa_uuuu_dddd______rrrr_aaaa_tttt_eeee _pppp_bbbb _pppp_bbbb Lowest baud rate where padding
needed
_vvvv_iiii_rrrr_tttt_uuuu_aaaa_llll______tttt_eeee_rrrr_mmmm_iiii_nnnn_aaaa_llll _vvvv_tttt _vvvv_tttt Virtual terminal number (UNIX
system)
_wwww_iiii_dddd_eeee______cccc_hhhh_aaaa_rrrr______ssss_iiii_zzzz_eeee _wwww_iiii_dddd_cccc_ssss _YYYY_nnnn Character step size when in
double wide mode
_wwww_iiii_dddd_tttt_hhhh______ssss_tttt_aaaa_tttt_uuuu_ssss______llll_iiii_nnnn_eeee _wwww_ssss_llll _wwww_ssss Number of columns in status line
_bbbb_iiii_tttt______iiii_mmmm_aaaa_gggg_eeee______nnnn_eeee_wwww_llll_iiii_nnnn_eeee _bbbb_iiii_nnnn_eeee_llll _ZZZZ_zzzz Move to next row of the
bit image (use tparm)
_bbbb_iiii_tttt______iiii_mmmm_aaaa_gggg_eeee______cccc_aaaa_rrrr_rrrr_iiii_aaaa_gggg_eeee______rrrr_eeee_tttt_uuuu_rrrr_nnnn _bbbb_iiii_cccc_rrrr _YYYY_vvvv Move to beginning of same
_cccc_hhhh_aaaa_nnnn_gggg_eeee______ssss_cccc_rrrr_oooo_llll_llll______rrrr_eeee_gggg_iiii_oooo_nnnn _cccc_ssss_rrrr _cccc_ssss Change to lines #1 through
#2 (vt100)
_cccc_hhhh_aaaa_rrrr______pppp_aaaa_dddd_dddd_iiii_nnnn_gggg _rrrr_mmmm_pppp _rrrr_PPPP Like _iiii_pppp but when in
replace mode
_cccc_hhhh_aaaa_rrrr______ssss_eeee_tttt______nnnn_aaaa_mmmm_eeee_ssss _cccc_ssss_nnnn_mmmm _ZZZZ_yyyy List of character set
names
_cccc_llll_eeee_aaaa_rrrr______aaaa_llll_llll______tttt_aaaa_bbbb_ssss _tttt_bbbb_cccc _cccc_tttt Clear all tab stops
_cccc_llll_eeee_aaaa_rrrr______mmmm_aaaa_rrrr_gggg_iiii_nnnn_ssss _mmmm_gggg_cccc _MMMM_CCCC Clear all margins (top,
bottom, and sides)
_cccc_llll_eeee_aaaa_rrrr______ssss_cccc_rrrr_eeee_eeee_nnnn _cccc_llll_eeee_aaaa_rrrr _cccc_llll Clear screen and home
_dddd_iiii_ssss______ssss_tttt_aaaa_tttt_uuuu_ssss______llll_iiii_nnnn_eeee _dddd_ssss_llll _dddd_ssss Disable status line
_dddd_iiii_ssss_pppp_llll_aaaa_yyyy______pppp_cccc______cccc_hhhh_aaaa_rrrr _dddd_iiii_ssss_pppp_cccc _SSSS_1111 Display PC character
_dddd_oooo_wwww_nnnn______hhhh_aaaa_llll_ffff______llll_iiii_nnnn_eeee _hhhh_dddd _hhhh_dddd Half-line down (forward
1/2 linefeed)
_eeee_nnnn_aaaa______aaaa_cccc_ssss _eeee_nnnn_aaaa_cccc_ssss _eeee_AAAA Enable alternate character
set
_eeee_nnnn_dddd______bbbb_iiii_tttt______iiii_mmmm_aaaa_gggg_eeee______rrrr_eeee_gggg_iiii_oooo_nnnn _eeee_nnnn_dddd_bbbb_iiii _YYYY_yyyy End a bit-image region
(use tparm)
_eeee_nnnn_tttt_eeee_rrrr______aaaa_llll_tttt______cccc_hhhh_aaaa_rrrr_ssss_eeee_tttt______mmmm_oooo_dddd_eeee _ssss_mmmm_aaaa_cccc_ssss _aaaa_ssss Start alternate character
set
_eeee_nnnn_tttt_eeee_rrrr______aaaa_mmmm______mmmm_oooo_dddd_eeee _ssss_mmmm_aaaa_mmmm _SSSS_AAAA Turn on automatic margins
_eeee_nnnn_tttt_eeee_rrrr______bbbb_llll_iiii_nnnn_kkkk______mmmm_oooo_dddd_eeee _bbbb_llll_iiii_nnnn_kkkk _mmmm_bbbb Turn on blinking
_eeee_nnnn_tttt_eeee_rrrr______bbbb_oooo_llll_dddd______mmmm_oooo_dddd_eeee _bbbb_oooo_llll_dddd _mmmm_dddd Turn on bold (extra
bright) mode
_eeee_nnnn_tttt_eeee_rrrr______cccc_aaaa______mmmm_oooo_dddd_eeee _ssss_mmmm_cccc_uuuu_pppp _tttt_iiii String to begin programs
_eeee_nnnn_tttt_eeee_rrrr______nnnn_eeee_aaaa_rrrr______llll_eeee_tttt_tttt_eeee_rrrr______qqqq_uuuu_aaaa_llll_iiii_tttt_yyyy _ssss_nnnn_llll_qqqq _ZZZZ_KKKK Set near-letter quality
print
_eeee_nnnn_tttt_eeee_rrrr______nnnn_oooo_rrrr_mmmm_aaaa_llll______qqqq_uuuu_aaaa_llll_iiii_tttt_yyyy _ssss_nnnn_rrrr_mmmm_qqqq _ZZZZ_LLLL Set normal quality print
_eeee_nnnn_tttt_eeee_rrrr______pppp_cccc______cccc_hhhh_aaaa_rrrr_ssss_eeee_tttt______mmmm_oooo_dddd_eeee _ssss_mmmm_pppp_cccc_hhhh _SSSS_2222 Enter PC character display
mode
_eeee_nnnn_tttt_eeee_rrrr______pppp_rrrr_oooo_tttt_eeee_cccc_tttt_eeee_dddd______mmmm_oooo_dddd_eeee _pppp_rrrr_oooo_tttt _mmmm_pppp Turn on protected mode
_eeee_nnnn_tttt_eeee_rrrr______rrrr_eeee_vvvv_eeee_rrrr_ssss_eeee______mmmm_oooo_dddd_eeee _rrrr_eeee_vvvv _mmmm_rrrr Turn on reverse video mode
_eeee_nnnn_tttt_eeee_rrrr______ssss_cccc_aaaa_nnnn_cccc_oooo_dddd_eeee______mmmm_oooo_dddd_eeee _ssss_mmmm_ssss_cccc _SSSS_4444 Enter PC scancode mode
_eeee_nnnn_tttt_eeee_rrrr______ssss_eeee_cccc_uuuu_rrrr_eeee______mmmm_oooo_dddd_eeee _iiii_nnnn_vvvv_iiii_ssss _mmmm_kkkk Turn on blank mode
_eeee_xxxx_iiii_tttt______aaaa_llll_tttt______cccc_hhhh_aaaa_rrrr_ssss_eeee_tttt______mmmm_oooo_dddd_eeee _rrrr_mmmm_aaaa_cccc_ssss _aaaa_eeee End alternate character
set
_eeee_xxxx_iiii_tttt______aaaa_mmmm______mmmm_oooo_dddd_eeee _rrrr_mmmm_aaaa_mmmm _RRRR_AAAA Turn off automatic margins
_eeee_xxxx_iiii_tttt______aaaa_tttt_tttt_rrrr_iiii_bbbb_uuuu_tttt_eeee______mmmm_oooo_dddd_eeee _ssss_gggg_rrrr_0000 _mmmm_eeee Turn off all attributes
_eeee_xxxx_iiii_tttt______cccc_aaaa______mmmm_oooo_dddd_eeee _rrrr_mmmm_cccc_uuuu_pppp _tttt_eeee String to end programs
that use _cccc_uuuu_pppp
_eeee_xxxx_iiii_tttt______dddd_eeee_llll_eeee_tttt_eeee______mmmm_oooo_dddd_eeee _rrrr_mmmm_dddd_cccc _eeee_dddd End delete mode
_eeee_xxxx_iiii_tttt______pppp_cccc______cccc_hhhh_aaaa_rrrr_ssss_eeee_tttt______mmmm_oooo_dddd_eeee _rrrr_mmmm_pppp_cccc_hhhh _SSSS_3333 Disable PC character
_iiii_nnnn_ssss_eeee_rrrr_tttt______cccc_hhhh_aaaa_rrrr_aaaa_cccc_tttt_eeee_rrrr _iiii_cccc_hhhh_1111 _iiii_cccc Insert character
_iiii_nnnn_ssss_eeee_rrrr_tttt______llll_iiii_nnnn_eeee _iiii_llll_1111 _aaaa_llll Add new blank line
_iiii_nnnn_ssss_eeee_rrrr_tttt______pppp_aaaa_dddd_dddd_iiii_nnnn_gggg _iiii_pppp _iiii_pppp Insert pad after character
inserted
The ``_kkkk_eeee_yyyy_____'' strings are sent by specific keys. The ``_kkkk_eeee_yyyy_____''
descriptions include the macro, defined in _cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh, for the code
returned by the _cccc_uuuu_rrrr_ssss_eeee_ssss routine _gggg_eeee_tttt_cccc_hhhh when the key is pressed [see
curs_getch(3X)].
Cap- Termcap
Variable name Code Description
_kkkk_eeee_yyyy______aaaa_1111 _kkkk_aaaa_1111 _KKKK_1111 _KKKK_EEEE_YYYY______AAAA_1111, upper left of keypad
_kkkk_eeee_yyyy______aaaa_3333 _kkkk_aaaa_3333 _KKKK_3333 _KKKK_EEEE_YYYY______AAAA_3333, upper right of keypad
_kkkk_eeee_yyyy______bbbb_2222 _kkkk_bbbb_2222 _KKKK_2222 _KKKK_EEEE_YYYY______BBBB_2222, center of keypad
_kkkk_eeee_yyyy______bbbb_aaaa_cccc_kkkk_ssss_pppp_aaaa_cccc_eeee _kkkk_bbbb_ssss _kkkk_bbbb _KKKK_EEEE_YYYY______BBBB_AAAA_CCCC_KKKK_SSSS_PPPP_AAAA_CCCC_EEEE, sent by
backspace key
_kkkk_eeee_yyyy______bbbb_eeee_gggg _kkkk_bbbb_eeee_gggg _@@@@_1111 _KKKK_EEEE_YYYY______BBBB_EEEE_GGGG, sent by beg(inning)
key
_kkkk_eeee_yyyy______bbbb_tttt_aaaa_bbbb _kkkk_cccc_bbbb_tttt _kkkk_BBBB _KKKK_EEEE_YYYY______BBBB_TTTT_AAAA_BBBB, sent by back-tab key
_kkkk_eeee_yyyy______cccc_1111 _kkkk_cccc_1111 _KKKK_4444 _KKKK_EEEE_YYYY______CCCC_1111, lower left of keypad
_kkkk_eeee_yyyy______cccc_3333 _kkkk_cccc_3333 _KKKK_5555 _KKKK_EEEE_YYYY______CCCC_3333, lower right of keypad
_kkkk_eeee_yyyy______cccc_aaaa_nnnn_cccc_eeee_llll _kkkk_cccc_aaaa_nnnn _@@@@_2222 _KKKK_EEEE_YYYY______CCCC_AAAA_NNNN_CCCC_EEEE_LLLL, sent by cancel key
_kkkk_eeee_yyyy______cccc_aaaa_tttt_aaaa_bbbb _kkkk_tttt_bbbb_cccc _kkkk_aaaa _KKKK_EEEE_YYYY______CCCC_AAAA_TTTT_AAAA_BBBB, sent by
clear-all-tabs key
_kkkk_eeee_yyyy______cccc_llll_eeee_aaaa_rrrr _kkkk_cccc_llll_rrrr _kkkk_CCCC _KKKK_EEEE_YYYY______CCCC_LLLL_EEEE_AAAA_RRRR, sent by clear-screen
or erase key
_kkkk_eeee_yyyy______cccc_llll_oooo_ssss_eeee _kkkk_cccc_llll_oooo _@@@@_3333 _KKKK_EEEE_YYYY______CCCC_LLLL_OOOO_SSSS_EEEE, sent by close key
_kkkk_eeee_yyyy______cccc_oooo_mmmm_mmmm_aaaa_nnnn_dddd _kkkk_cccc_mmmm_dddd _@@@@_4444 _KKKK_EEEE_YYYY______CCCC_OOOO_MMMM_MMMM_AAAA_NNNN_DDDD, sent by cmd
(command) key
_kkkk_eeee_yyyy______cccc_oooo_pppp_yyyy _kkkk_cccc_pppp_yyyy _@@@@_5555 _KKKK_EEEE_YYYY______CCCC_OOOO_PPPP_YYYY, sent by copy key
_kkkk_eeee_yyyy______cccc_rrrr_eeee_aaaa_tttt_eeee _kkkk_cccc_rrrr_tttt _@@@@_6666 _KKKK_EEEE_YYYY______CCCC_RRRR_EEEE_AAAA_TTTT_EEEE, sent by create key
_kkkk_eeee_yyyy______cccc_tttt_aaaa_bbbb _kkkk_cccc_tttt_aaaa_bbbb _kkkk_tttt _KKKK_EEEE_YYYY______CCCC_TTTT_AAAA_BBBB, sent by clear-tab key
_kkkk_eeee_yyyy______dddd_cccc _kkkk_dddd_cccc_hhhh_1111 _kkkk_DDDD _KKKK_EEEE_YYYY______DDDD_CCCC, sent by
delete-character key
_kkkk_eeee_yyyy______dddd_llll _kkkk_dddd_llll_1111 _kkkk_LLLL _KKKK_EEEE_YYYY______DDDD_LLLL, sent by delete-line key
_kkkk_eeee_yyyy______dddd_oooo_wwww_nnnn _kkkk_cccc_uuuu_dddd_1111 _kkkk_dddd _KKKK_EEEE_YYYY______DDDD_OOOO_WWWW_NNNN, sent by terminal
down-arrow key
_kkkk_eeee_yyyy______eeee_iiii_cccc _kkkk_rrrr_mmmm_iiii_rrrr _kkkk_MMMM _KKKK_EEEE_YYYY______EEEE_IIII_CCCC, sent by _rrrr_mmmm_iiii_rrrr or _ssss_mmmm_iiii_rrrr
in insert mode
_kkkk_eeee_yyyy______eeee_nnnn_dddd _kkkk_eeee_nnnn_dddd _@@@@_7777 _KKKK_EEEE_YYYY______EEEE_NNNN_DDDD, sent by end key
_kkkk_eeee_yyyy______eeee_nnnn_tttt_eeee_rrrr _kkkk_eeee_nnnn_tttt _@@@@_8888 _KKKK_EEEE_YYYY______EEEE_NNNN_TTTT_EEEE_RRRR, sent by enter/send
key
_kkkk_eeee_yyyy______eeee_oooo_llll _kkkk_eeee_llll _kkkk_EEEE _KKKK_EEEE_YYYY______EEEE_OOOO_LLLL, sent by
clear-to-end-of-line key
_kkkk_eeee_yyyy______eeee_oooo_ssss _kkkk_eeee_dddd _kkkk_SSSS _KKKK_EEEE_YYYY______EEEE_OOOO_SSSS, sent by
clear-to-end-of-screen key
_kkkk_eeee_yyyy______eeee_xxxx_iiii_tttt _kkkk_eeee_xxxx_tttt _@@@@_9999 _KKKK_EEEE_YYYY______EEEE_XXXX_IIII_TTTT, sent by exit key
_kkkk_eeee_yyyy______ffff_0000 _kkkk_ffff_0000 _kkkk_0000 _KKKK_EEEE_YYYY______FFFF_((((_0000_)))), sent by function
key f0
_kkkk_eeee_yyyy______ffff_1111 _kkkk_ffff_1111 _kkkk_1111 _KKKK_EEEE_YYYY______FFFF_((((_1111_)))), sent by function
key f1
_kkkk_eeee_yyyy______ffff_2222 _kkkk_ffff_2222 _kkkk_2222 _KKKK_EEEE_YYYY______FFFF_((((_2222_)))), sent by function
key f2
_kkkk_eeee_yyyy______ffff_3333 _kkkk_ffff_3333 _kkkk_3333 _KKKK_EEEE_YYYY______FFFF_((((_3333_)))), sent by function
key f3
_kkkk_eeee_yyyy______ffff_4444 _kkkk_ffff_4444 _kkkk_4444 _KKKK_EEEE_YYYY______FFFF_((((_4444_)))), sent by function
key f4
_kkkk_eeee_yyyy______ffff_5555 _kkkk_ffff_5555 _kkkk_5555 _KKKK_EEEE_YYYY______FFFF_((((_5555_)))), sent by function
key f5
_kkkk_eeee_yyyy______ffff_6666 _kkkk_ffff_6666 _kkkk_6666 _KKKK_EEEE_YYYY______FFFF_((((_6666_)))), sent by function
key f6
_kkkk_eeee_yyyy______ffff_7777 _kkkk_ffff_7777 _kkkk_7777 _KKKK_EEEE_YYYY______FFFF_((((_7777_)))), sent by function
key f7
_kkkk_eeee_yyyy______ffff_8888 _kkkk_ffff_8888 _kkkk_8888 _KKKK_EEEE_YYYY______FFFF_((((_8888_)))), sent by function
key f8
_kkkk_eeee_yyyy______ffff_9999 _kkkk_ffff_9999 _kkkk_9999 _KKKK_EEEE_YYYY______FFFF_((((_9999_)))), sent by function
key f9
_kkkk_eeee_yyyy______ffff_1111_0000 _kkkk_ffff_1111_0000 _kkkk_;;;; _KKKK_EEEE_YYYY______FFFF_((((_1111_0000_)))), sent by function
_kkkk_eeee_yyyy______ffff_6666_1111 _kkkk_ffff_6666_1111 _FFFF_pppp _KKKK_EEEE_YYYY______FFFF_((((_6666_1111_)))), sent by function
key f61
_kkkk_eeee_yyyy______ffff_6666_2222 _kkkk_ffff_6666_2222 _FFFF_qqqq _KKKK_EEEE_YYYY______FFFF_((((_6666_2222_)))), sent by function
key f62
_kkkk_eeee_yyyy______ffff_6666_3333 _kkkk_ffff_6666_3333 _FFFF_rrrr _KKKK_EEEE_YYYY______FFFF_((((_6666_3333_)))), sent by function
key f63
_kkkk_eeee_yyyy______ffff_iiii_nnnn_dddd _kkkk_ffff_nnnn_dddd _@@@@_0000 _KKKK_EEEE_YYYY______FFFF_IIII_NNNN_DDDD, sent by find key
_kkkk_eeee_yyyy______hhhh_eeee_llll_pppp _kkkk_hhhh_llll_pppp _%%%%_1111 _KKKK_EEEE_YYYY______HHHH_EEEE_LLLL_PPPP, sent by help key
_kkkk_eeee_yyyy______hhhh_oooo_mmmm_eeee _kkkk_hhhh_oooo_mmmm_eeee _kkkk_hhhh _KKKK_EEEE_YYYY______HHHH_OOOO_MMMM_EEEE, sent by home key
_kkkk_eeee_yyyy______iiii_cccc _kkkk_iiii_cccc_hhhh_1111 _kkkk_IIII _KKKK_EEEE_YYYY______IIII_CCCC, sent by ins-char/enter
ins-mode key
_kkkk_eeee_yyyy______iiii_llll _kkkk_iiii_llll_1111 _kkkk_AAAA _KKKK_EEEE_YYYY______IIII_LLLL, sent by insert-line key
_kkkk_eeee_yyyy______llll_eeee_ffff_tttt _kkkk_cccc_uuuu_bbbb_1111 _kkkk_llll _KKKK_EEEE_YYYY______LLLL_EEEE_FFFF_TTTT, sent by terminal
left-arrow
key
_kkkk_eeee_yyyy______llll_llll _kkkk_llll_llll _kkkk_HHHH _KKKK_EEEE_YYYY______LLLL_LLLL, sent by home-down key
_kkkk_eeee_yyyy______mmmm_aaaa_rrrr_kkkk _kkkk_mmmm_rrrr_kkkk _%%%%_2222 _KKKK_EEEE_YYYY______MMMM_AAAA_RRRR_KKKK, sent by mark key
_kkkk_eeee_yyyy______mmmm_eeee_ssss_ssss_aaaa_gggg_eeee _kkkk_mmmm_ssss_gggg _%%%%_3333 _KKKK_EEEE_YYYY______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE, sent by message
key
_kkkk_eeee_yyyy______mmmm_oooo_vvvv_eeee _kkkk_mmmm_oooo_vvvv _%%%%_4444 _KKKK_EEEE_YYYY______MMMM_OOOO_VVVV_EEEE, sent by move key
_kkkk_eeee_yyyy______nnnn_eeee_xxxx_tttt _kkkk_nnnn_xxxx_tttt _%%%%_5555 _KKKK_EEEE_YYYY______NNNN_EEEE_XXXX_TTTT, sent by
next-object key
_kkkk_eeee_yyyy______nnnn_pppp_aaaa_gggg_eeee _kkkk_nnnn_pppp _kkkk_NNNN _KKKK_EEEE_YYYY______NNNN_PPPP_AAAA_GGGG_EEEE, sent by
next-page key
_kkkk_eeee_yyyy______oooo_pppp_eeee_nnnn _kkkk_oooo_pppp_nnnn _%%%%_6666 _KKKK_EEEE_YYYY______OOOO_PPPP_EEEE_NNNN, sent by open key
_kkkk_eeee_yyyy______oooo_pppp_tttt_iiii_oooo_nnnn_ssss _kkkk_oooo_pppp_tttt _%%%%_7777 _KKKK_EEEE_YYYY______OOOO_PPPP_TTTT_IIII_OOOO_NNNN_SSSS, sent by options
key
_kkkk_eeee_yyyy______pppp_pppp_aaaa_gggg_eeee _kkkk_pppp_pppp _kkkk_PPPP _KKKK_EEEE_YYYY______PPPP_PPPP_AAAA_GGGG_EEEE, sent by
previous-page key
_kkkk_eeee_yyyy______pppp_rrrr_eeee_vvvv_iiii_oooo_uuuu_ssss _kkkk_pppp_rrrr_vvvv _%%%%_8888 _KKKK_EEEE_YYYY______PPPP_RRRR_EEEE_VVVV_IIII_OOOO_UUUU_SSSS, sent by
previous-object key
_kkkk_eeee_yyyy______pppp_rrrr_iiii_nnnn_tttt _kkkk_pppp_rrrr_tttt _%%%%_9999 _KKKK_EEEE_YYYY______PPPP_RRRR_IIII_NNNN_TTTT, sent by print or
copy key
_kkkk_eeee_yyyy______rrrr_eeee_dddd_oooo _kkkk_rrrr_dddd_oooo _%%%%_0000 _KKKK_EEEE_YYYY______RRRR_EEEE_DDDD_OOOO, sent by redo key
_kkkk_eeee_yyyy______rrrr_eeee_ffff_eeee_rrrr_eeee_nnnn_cccc_eeee _kkkk_rrrr_eeee_ffff _&&&&_1111 _KKKK_EEEE_YYYY______RRRR_EEEE_FFFF_EEEE_RRRR_EEEE_NNNN_CCCC_EEEE, sent by
ref(erence) key
_kkkk_eeee_yyyy______rrrr_eeee_ffff_rrrr_eeee_ssss_hhhh _kkkk_rrrr_ffff_rrrr _&&&&_2222 _KKKK_EEEE_YYYY______RRRR_EEEE_FFFF_RRRR_EEEE_SSSS_HHHH, sent by refresh
key
_kkkk_eeee_yyyy______rrrr_eeee_pppp_llll_aaaa_cccc_eeee _kkkk_rrrr_pppp_llll _&&&&_3333 _KKKK_EEEE_YYYY______RRRR_EEEE_PPPP_LLLL_AAAA_CCCC_EEEE, sent by replace
key
_kkkk_eeee_yyyy______rrrr_eeee_ssss_tttt_aaaa_rrrr_tttt _kkkk_rrrr_ssss_tttt _&&&&_4444 _KKKK_EEEE_YYYY______RRRR_EEEE_SSSS_TTTT_AAAA_RRRR_TTTT, sent by restart
key
_kkkk_eeee_yyyy______rrrr_eeee_ssss_uuuu_mmmm_eeee _kkkk_rrrr_eeee_ssss _&&&&_5555 _KKKK_EEEE_YYYY______RRRR_EEEE_SSSS_UUUU_MMMM_EEEE, sent by resume key
_kkkk_eeee_yyyy______rrrr_iiii_gggg_hhhh_tttt _kkkk_cccc_uuuu_ffff_1111 _kkkk_rrrr _KKKK_EEEE_YYYY______RRRR_IIII_GGGG_HHHH_TTTT, sent by terminal
right-arrow key
_kkkk_eeee_yyyy______ssss_aaaa_vvvv_eeee _kkkk_ssss_aaaa_vvvv _&&&&_6666 _KKKK_EEEE_YYYY______SSSS_AAAA_VVVV_EEEE, sent by save key
_kkkk_eeee_yyyy______ssss_bbbb_eeee_gggg _kkkk_BBBB_EEEE_GGGG _&&&&_9999 _KKKK_EEEE_YYYY______SSSS_BBBB_EEEE_GGGG, sent by shifted
beginning key
_kkkk_eeee_yyyy______ssss_cccc_aaaa_nnnn_cccc_eeee_llll _kkkk_CCCC_AAAA_NNNN _&&&&_0000 _KKKK_EEEE_YYYY______SSSS_CCCC_AAAA_NNNN_CCCC_EEEE_LLLL, sent by shifted
_kkkk_eeee_yyyy______ssss_cccc_oooo_mmmm_mmmm_aaaa_nnnn_dddd _kkkk_CCCC_MMMM_DDDD _****_1111 _KKKK_EEEE_YYYY______SSSS_CCCC_OOOO_MMMM_MMMM_AAAA_NNNN_DDDD, sent by shifted
command key
_kkkk_eeee_yyyy______ssss_cccc_oooo_pppp_yyyy _kkkk_CCCC_PPPP_YYYY _****_2222 _KKKK_EEEE_YYYY______SSSS_CCCC_OOOO_PPPP_YYYY, sent by shifted copy
key
_kkkk_eeee_yyyy______ssss_cccc_rrrr_eeee_aaaa_tttt_eeee _kkkk_CCCC_RRRR_TTTT _****_3333 _KKKK_EEEE_YYYY______SSSS_CCCC_RRRR_EEEE_AAAA_TTTT_EEEE, sent by shifted
create key
_kkkk_eeee_yyyy______ssss_dddd_cccc _kkkk_DDDD_CCCC _****_4444 _KKKK_EEEE_YYYY______SSSS_DDDD_CCCC, sent by shifted
delete-char key
_kkkk_eeee_yyyy______ssss_dddd_llll _kkkk_DDDD_LLLL _****_5555 _KKKK_EEEE_YYYY______SSSS_DDDD_LLLL, sent by shifted
delete-line key
_kkkk_eeee_yyyy______ssss_eeee_llll_eeee_cccc_tttt _kkkk_ssss_llll_tttt _****_6666 _KKKK_EEEE_YYYY______SSSS_EEEE_LLLL_EEEE_CCCC_TTTT, sent by select key
_kkkk_eeee_yyyy______ssss_eeee_nnnn_dddd _kkkk_EEEE_NNNN_DDDD _****_7777 _KKKK_EEEE_YYYY______SSSS_EEEE_NNNN_DDDD, sent by shifted end
key
_kkkk_eeee_yyyy______ssss_eeee_oooo_llll _kkkk_EEEE_OOOO_LLLL _****_8888 _KKKK_EEEE_YYYY______SSSS_EEEE_OOOO_LLLL, sent by shifted
clear-line key
_kkkk_eeee_yyyy______ssss_eeee_xxxx_iiii_tttt _kkkk_EEEE_XXXX_TTTT _****_9999 _KKKK_EEEE_YYYY______SSSS_EEEE_XXXX_IIII_TTTT, sent by shifted exit
key
_kkkk_eeee_yyyy______ssss_ffff _kkkk_iiii_nnnn_dddd _kkkk_FFFF _KKKK_EEEE_YYYY______SSSS_FFFF, sent by
scroll-forward/down key
_kkkk_eeee_yyyy______ssss_ffff_iiii_nnnn_dddd _kkkk_FFFF_NNNN_DDDD _****_0000 _KKKK_EEEE_YYYY______SSSS_FFFF_IIII_NNNN_DDDD, sent by shifted find
key
_kkkk_eeee_yyyy______ssss_hhhh_eeee_llll_pppp _kkkk_HHHH_LLLL_PPPP _####_1111 _KKKK_EEEE_YYYY______SSSS_HHHH_EEEE_LLLL_PPPP, sent by shifted help
key
_kkkk_eeee_yyyy______ssss_hhhh_oooo_mmmm_eeee _kkkk_HHHH_OOOO_MMMM _####_2222 _KKKK_EEEE_YYYY______SSSS_HHHH_OOOO_MMMM_EEEE, sent by shifted home
key
_kkkk_eeee_yyyy______ssss_iiii_cccc _kkkk_IIII_CCCC _####_3333 _KKKK_EEEE_YYYY______SSSS_IIII_CCCC, sent by shifted input
key
_kkkk_eeee_yyyy______ssss_llll_eeee_ffff_tttt _kkkk_LLLL_FFFF_TTTT _####_4444 _KKKK_EEEE_YYYY______SSSS_LLLL_EEEE_FFFF_TTTT, sent by shifted
left-arrow key
_kkkk_eeee_yyyy______ssss_mmmm_eeee_ssss_ssss_aaaa_gggg_eeee _kkkk_MMMM_SSSS_GGGG _%%%%_aaaa _KKKK_EEEE_YYYY______SSSS_MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE, sent by shifted
message key
_kkkk_eeee_yyyy______ssss_mmmm_oooo_vvvv_eeee _kkkk_MMMM_OOOO_VVVV _%%%%_bbbb _KKKK_EEEE_YYYY______SSSS_MMMM_OOOO_VVVV_EEEE, sent by shifted move
key
_kkkk_eeee_yyyy______ssss_nnnn_eeee_xxxx_tttt _kkkk_NNNN_XXXX_TTTT _%%%%_cccc _KKKK_EEEE_YYYY______SSSS_NNNN_EEEE_XXXX_TTTT, sent by shifted next
key
_kkkk_eeee_yyyy______ssss_oooo_pppp_tttt_iiii_oooo_nnnn_ssss _kkkk_OOOO_PPPP_TTTT _%%%%_dddd _KKKK_EEEE_YYYY______SSSS_OOOO_PPPP_TTTT_IIII_OOOO_NNNN_SSSS, sent by shifted
options key
_kkkk_eeee_yyyy______ssss_pppp_rrrr_eeee_vvvv_iiii_oooo_uuuu_ssss _kkkk_PPPP_RRRR_VVVV _%%%%_eeee _KKKK_EEEE_YYYY______SSSS_PPPP_RRRR_EEEE_VVVV_IIII_OOOO_UUUU_SSSS, sent by shifted
prev key
_kkkk_eeee_yyyy______ssss_pppp_rrrr_iiii_nnnn_tttt _kkkk_PPPP_RRRR_TTTT _%%%%_ffff _KKKK_EEEE_YYYY______SSSS_PPPP_RRRR_IIII_NNNN_TTTT, sent by shifted
print key
_kkkk_eeee_yyyy______ssss_rrrr _kkkk_rrrr_iiii _kkkk_RRRR _KKKK_EEEE_YYYY______SSSS_RRRR, sent by
scroll-backward/up key
_kkkk_eeee_yyyy______ssss_rrrr_eeee_dddd_oooo _kkkk_RRRR_DDDD_OOOO _%%%%_gggg _KKKK_EEEE_YYYY______SSSS_RRRR_EEEE_DDDD_OOOO, sent by shifted redo
key
_kkkk_eeee_yyyy______ssss_rrrr_eeee_pppp_llll_aaaa_cccc_eeee _kkkk_RRRR_PPPP_LLLL _%%%%_hhhh _KKKK_EEEE_YYYY______SSSS_RRRR_EEEE_PPPP_LLLL_AAAA_CCCC_EEEE, sent by shifted
replace key
_kkkk_eeee_yyyy______ssss_rrrr_iiii_gggg_hhhh_tttt _kkkk_RRRR_IIII_TTTT _%%%%_iiii _KKKK_EEEE_YYYY______SSSS_RRRR_IIII_GGGG_HHHH_TTTT, sent by shifted
right-arrow key
_kkkk_eeee_yyyy______ssss_rrrr_ssss_uuuu_mmmm_eeee _kkkk_RRRR_EEEE_SSSS _%%%%_jjjj _KKKK_EEEE_YYYY______SSSS_RRRR_SSSS_UUUU_MMMM_EEEE, sent by shifted
_kkkk_eeee_yyyy______ssss_ssss_aaaa_vvvv_eeee _kkkk_SSSS_AAAA_VVVV _!!!!_1111 _KKKK_EEEE_YYYY______SSSS_SSSS_AAAA_VVVV_EEEE, sent by shifted save
key
_kkkk_eeee_yyyy______ssss_ssss_uuuu_ssss_pppp_eeee_nnnn_dddd _kkkk_SSSS_PPPP_DDDD _!!!!_2222 _KKKK_EEEE_YYYY______SSSS_SSSS_UUUU_SSSS_PPPP_EEEE_NNNN_DDDD, sent by shifted
suspend key
_kkkk_eeee_yyyy______ssss_tttt_aaaa_bbbb _kkkk_hhhh_tttt_ssss _kkkk_TTTT _KKKK_EEEE_YYYY______SSSS_TTTT_AAAA_BBBB, sent by set-tab key
_kkkk_eeee_yyyy______ssss_uuuu_nnnn_dddd_oooo _kkkk_UUUU_NNNN_DDDD _!!!!_3333 _KKKK_EEEE_YYYY______SSSS_UUUU_NNNN_DDDD_OOOO, sent by shifted undo
key
_kkkk_eeee_yyyy______ssss_uuuu_ssss_pppp_eeee_nnnn_dddd _kkkk_ssss_pppp_dddd _&&&&_7777 _KKKK_EEEE_YYYY______SSSS_UUUU_SSSS_PPPP_EEEE_NNNN_DDDD, sent by suspend
key
_kkkk_eeee_yyyy______uuuu_nnnn_dddd_oooo _kkkk_uuuu_nnnn_dddd _&&&&_8888 _KKKK_EEEE_YYYY______UUUU_NNNN_DDDD_OOOO, sent by undo key
_kkkk_eeee_yyyy______uuuu_pppp _kkkk_cccc_uuuu_uuuu_1111 _kkkk_uuuu _KKKK_EEEE_YYYY______UUUU_PPPP, sent by terminal
up-arrow key
_kkkk_eeee_yyyy_pppp_aaaa_dddd______llll_oooo_cccc_aaaa_llll _rrrr_mmmm_kkkk_xxxx _kkkk_eeee Out of ``keypad-transmit'' mode
_kkkk_eeee_yyyy_pppp_aaaa_dddd______xxxx_mmmm_iiii_tttt _ssss_mmmm_kkkk_xxxx _kkkk_ssss Put terminal in
``keypad-transmit'' mode
_llll_aaaa_bbbb______ffff_0000 _llll_ffff_0000 _llll_0000 Labels on function key f0 if
not f0
_llll_aaaa_bbbb______ffff_1111 _llll_ffff_1111 _llll_1111 Labels on function key f1 if
not f1
_llll_aaaa_bbbb______ffff_2222 _llll_ffff_2222 _llll_2222 Labels on function key f2 if
not f2
_llll_aaaa_bbbb______ffff_3333 _llll_ffff_3333 _llll_3333 Labels on function key f3 if
not f3
_llll_aaaa_bbbb______ffff_4444 _llll_ffff_4444 _llll_4444 Labels on function key f4 if
not f4
_llll_aaaa_bbbb______ffff_5555 _llll_ffff_5555 _llll_5555 Labels on function key f5 if
not f5
_llll_aaaa_bbbb______ffff_6666 _llll_ffff_6666 _llll_6666 Labels on function key f6 if
not f6
_llll_aaaa_bbbb______ffff_7777 _llll_ffff_7777 _llll_7777 Labels on function key f7 if
not f7
_llll_aaaa_bbbb______ffff_8888 _llll_ffff_8888 _llll_8888 Labels on function key f8 if
not f8
_llll_aaaa_bbbb______ffff_9999 _llll_ffff_9999 _llll_9999 Labels on function key f9 if
not f9
_llll_aaaa_bbbb______ffff_1111_0000 _llll_ffff_1111_0000 _llll_aaaa Labels on function key f10 if
not f10
_llll_aaaa_bbbb_eeee_llll______oooo_ffff_ffff _rrrr_mmmm_llll_nnnn _LLLL_FFFF Turn off soft labels
_llll_aaaa_bbbb_eeee_llll______oooo_nnnn _ssss_mmmm_llll_nnnn _LLLL_OOOO Turn on soft labels
_mmmm_eeee_tttt_aaaa______oooo_ffff_ffff _rrrr_mmmm_mmmm _mmmm_oooo Turn off "meta mode"
_mmmm_eeee_tttt_aaaa______oooo_nnnn _ssss_mmmm_mmmm _mmmm_mmmm Turn on "meta mode" (8th bit)
_mmmm_iiii_cccc_rrrr_oooo______cccc_oooo_llll_uuuu_mmmm_nnnn______aaaa_dddd_dddd_rrrr_eeee_ssss_ssss _mmmm_hhhh_pppp_aaaa _ZZZZ_YYYY Like _cccc_oooo_llll_uuuu_mmmm_nnnn______aaaa_dddd_dddd_rrrr_eeee_ssss_ssss for micro
adjustment
_mmmm_iiii_cccc_rrrr_oooo______dddd_oooo_wwww_nnnn _mmmm_cccc_uuuu_dddd_1111 _ZZZZ_ZZZZ Like _cccc_uuuu_rrrr_ssss_oooo_rrrr______dddd_oooo_wwww_nnnn for micro
adjustment
_mmmm_iiii_cccc_rrrr_oooo______llll_eeee_ffff_tttt _mmmm_cccc_uuuu_bbbb_1111 _ZZZZ_aaaa Like _cccc_uuuu_rrrr_ssss_oooo_rrrr______llll_eeee_ffff_tttt for micro
adjustment
_mmmm_iiii_cccc_rrrr_oooo______rrrr_iiii_gggg_hhhh_tttt _mmmm_cccc_uuuu_ffff_1111 _ZZZZ_bbbb Like _cccc_uuuu_rrrr_ssss_oooo_rrrr______rrrr_iiii_gggg_hhhh_tttt for micro
_mmmm_iiii_cccc_rrrr_oooo______rrrr_oooo_wwww______aaaa_dddd_dddd_rrrr_eeee_ssss_ssss _mmmm_vvvv_pppp_aaaa _ZZZZ_cccc Like _rrrr_oooo_wwww______aaaa_dddd_dddd_rrrr_eeee_ssss_ssss for micro
adjustment
_mmmm_iiii_cccc_rrrr_oooo______uuuu_pppp _mmmm_cccc_uuuu_uuuu_1111 _ZZZZ_dddd Like _cccc_uuuu_rrrr_ssss_oooo_rrrr______uuuu_pppp for micro
adjustment
_nnnn_eeee_wwww_llll_iiii_nnnn_eeee _nnnn_eeee_llll _nnnn_wwww Newline (behaves like _cccc_rrrr
followed by _llll_ffff)
_oooo_rrrr_dddd_eeee_rrrr______oooo_ffff______pppp_iiii_nnnn_ssss _pppp_oooo_rrrr_dddd_eeee_rrrr _ZZZZ_eeee Matches software bits to
print-head pins
_oooo_rrrr_iiii_gggg______cccc_oooo_llll_oooo_rrrr_ssss _oooo_cccc _oooo_cccc Set all color(-pair)s to the
original ones
_oooo_rrrr_iiii_gggg______pppp_aaaa_iiii_rrrr _oooo_pppp _oooo_pppp Set default color-pair to the
original one
_pppp_aaaa_dddd______cccc_hhhh_aaaa_rrrr _pppp_aaaa_dddd _pppp_cccc Pad character (rather than
_pppp_aaaa_rrrr_mmmm______dddd_oooo_wwww_nnnn______cccc_uuuu_rrrr_ssss_oooo_rrrr _cccc_uuuu_dddd _DDDD_OOOO Move down #1 lines
_pppp_aaaa_rrrr_mmmm______dddd_oooo_wwww_nnnn______mmmm_iiii_cccc_rrrr_oooo _mmmm_cccc_uuuu_dddd _ZZZZ_ffff Like _pppp_aaaa_rrrr_mmmm______dddd_oooo_wwww_nnnn______cccc_uuuu_rrrr_ssss_oooo_rrrr for micro
_pppp_aaaa_rrrr_mmmm______iiii_nnnn_ssss_eeee_rrrr_tttt______llll_iiii_nnnn_eeee _iiii_llll _AAAA_LLLL Add #1 new blank lines
_pppp_aaaa_rrrr_mmmm______llll_eeee_ffff_tttt______cccc_uuuu_rrrr_ssss_oooo_rrrr _cccc_uuuu_bbbb _LLLL_EEEE Move cursor left #1 spaces
_pppp_aaaa_rrrr_mmmm______llll_eeee_ffff_tttt______mmmm_iiii_cccc_rrrr_oooo _mmmm_cccc_uuuu_bbbb _ZZZZ_gggg Like _pppp_aaaa_rrrr_mmmm______llll_eeee_ffff_tttt______cccc_uuuu_rrrr_ssss_oooo_rrrr for micro
adjustment
_pppp_aaaa_rrrr_mmmm______rrrr_iiii_gggg_hhhh_tttt______cccc_uuuu_rrrr_ssss_oooo_rrrr _cccc_uuuu_ffff _RRRR_IIII Move right #1 spaces
_pppp_aaaa_rrrr_mmmm______rrrr_iiii_gggg_hhhh_tttt______mmmm_iiii_cccc_rrrr_oooo _mmmm_cccc_uuuu_ffff _ZZZZ_hhhh Like _pppp_aaaa_rrrr_mmmm______rrrr_iiii_gggg_hhhh_tttt______cccc_uuuu_rrrr_ssss_oooo_rrrr for
_pppp_aaaa_rrrr_mmmm______uuuu_pppp______cccc_uuuu_rrrr_ssss_oooo_rrrr _cccc_uuuu_uuuu _UUUU_PPPP Move cursor up #1 lines
_pppp_aaaa_rrrr_mmmm______uuuu_pppp______mmmm_iiii_cccc_rrrr_oooo _mmmm_cccc_uuuu_uuuu _ZZZZ_iiii Like _pppp_aaaa_rrrr_mmmm______uuuu_pppp______cccc_uuuu_rrrr_ssss_oooo_rrrr for micro
adjustment
_pppp_cccc______tttt_eeee_rrrr_mmmm______oooo_pppp_tttt_iiii_oooo_nnnn_ssss _pppp_cccc_tttt_rrrr_mmmm _SSSS_6666 PC terminal options
_pppp_kkkk_eeee_yyyy______kkkk_eeee_yyyy _pppp_ffff_kkkk_eeee_yyyy _pppp_kkkk Prog funct key #1 to type
string #2
_pppp_kkkk_eeee_yyyy______llll_oooo_cccc_aaaa_llll _pppp_ffff_llll_oooo_cccc _pppp_llll Prog funct key #1 to execute
string #2
_pppp_kkkk_eeee_yyyy______pppp_llll_aaaa_bbbb _pppp_ffff_xxxx_llll _xxxx_llll Prog key #1 to xmit string #2
and show string #3
_pppp_kkkk_eeee_yyyy______xxxx_mmmm_iiii_tttt _pppp_ffff_xxxx _pppp_xxxx Prog funct key #1 to xmit
string #2
_pppp_llll_aaaa_bbbb______nnnn_oooo_rrrr_mmmm _pppp_llll_nnnn _pppp_nnnn Prog label #1 to show string #2
_pppp_rrrr_iiii_nnnn_tttt______ssss_cccc_rrrr_eeee_eeee_nnnn _mmmm_cccc_0000 _pppp_ssss Print contents of the screen
_pppp_rrrr_tttt_rrrr______nnnn_oooo_nnnn _mmmm_cccc_5555_pppp _pppp_OOOO Turn on the printer for #1
bytes
_pppp_rrrr_tttt_rrrr______oooo_ffff_ffff _mmmm_cccc_4444 _pppp_ffff Turn off the printer
_pppp_rrrr_tttt_rrrr______oooo_nnnn _mmmm_cccc_5555 _pppp_oooo Turn on the printer
_rrrr_eeee_pppp_eeee_aaaa_tttt______cccc_hhhh_aaaa_rrrr _rrrr_eeee_pppp _rrrr_pppp Repeat char #1 #2 times
_rrrr_eeee_qqqq______ffff_oooo_rrrr______iiii_nnnn_pppp_uuuu_tttt _rrrr_ffff_iiii _RRRR_FFFF Send next input char (for ptys)
_rrrr_eeee_ssss_eeee_tttt______1111_ssss_tttt_rrrr_iiii_nnnn_gggg _rrrr_ssss_1111 _rrrr_1111 Reset terminal completely to
_rrrr_eeee_ssss_eeee_tttt______2222_ssss_tttt_rrrr_iiii_nnnn_gggg _rrrr_ssss_2222 _rrrr_2222 Reset terminal completely to
sane modes
_rrrr_eeee_ssss_eeee_tttt______3333_ssss_tttt_rrrr_iiii_nnnn_gggg _rrrr_ssss_3333 _rrrr_3333 Reset terminal completely to
sane modes
_rrrr_eeee_ssss_eeee_tttt______ffff_iiii_llll_eeee _rrrr_ffff _rrrr_ffff Name of file containing reset
string
_rrrr_eeee_ssss_tttt_oooo_rrrr_eeee______cccc_uuuu_rrrr_ssss_oooo_rrrr _rrrr_cccc _rrrr_cccc Restore cursor to position of
last sc
_rrrr_oooo_wwww______aaaa_dddd_dddd_rrrr_eeee_ssss_ssss _vvvv_pppp_aaaa _cccc_vvvv Vertical position absolute
_ssss_aaaa_vvvv_eeee______cccc_uuuu_rrrr_ssss_oooo_rrrr _ssss_cccc _ssss_cccc Save cursor position
_ssss_cccc_aaaa_nnnn_cccc_oooo_dddd_eeee______eeee_ssss_cccc_aaaa_pppp_eeee _ssss_cccc_eeee_ssss_cccc _SSSS_7777 Escape for scancode emulation
_ssss_cccc_rrrr_oooo_llll_llll______ffff_oooo_rrrr_wwww_aaaa_rrrr_dddd _iiii_nnnn_dddd _ssss_ffff Scroll text up
_ssss_cccc_rrrr_oooo_llll_llll______rrrr_eeee_vvvv_eeee_rrrr_ssss_eeee _rrrr_iiii _ssss_rrrr Scroll text down
_ssss_eeee_llll_eeee_cccc_tttt______cccc_hhhh_aaaa_rrrr______ssss_eeee_tttt _ssss_cccc_ssss _ZZZZ_jjjj Select character set
_ssss_eeee_tttt_0000______dddd_eeee_ssss______ssss_eeee_qqqq _ssss_0000_dddd_ssss _ssss_0000 Shift into codeset 0 (EUC set
0, ASCII)
_ssss_eeee_tttt_1111______dddd_eeee_ssss______ssss_eeee_qqqq _ssss_1111_dddd_ssss _ssss_1111 Shift into codeset 1
_ssss_eeee_tttt_2222______dddd_eeee_ssss______ssss_eeee_qqqq _ssss_2222_dddd_ssss _ssss_2222 Shift into codeset 2
_ssss_eeee_tttt_3333______dddd_eeee_ssss______ssss_eeee_qqqq _ssss_3333_dddd_ssss _ssss_3333 Shift into codeset 3
_ssss_eeee_tttt______aaaa______bbbb_aaaa_cccc_kkkk_gggg_rrrr_oooo_uuuu_nnnn_dddd _ssss_eeee_tttt_aaaa_bbbb _AAAA_BBBB Set background color using ANSI
escape
_ssss_eeee_tttt______aaaa______ffff_oooo_rrrr_eeee_gggg_rrrr_oooo_uuuu_nnnn_dddd _ssss_eeee_tttt_aaaa_ffff _AAAA_FFFF Set foreground color using ANSI
escape
_ssss_eeee_tttt______aaaa_tttt_tttt_rrrr_iiii_bbbb_uuuu_tttt_eeee_ssss _ssss_gggg_rrrr _ssss_aaaa Define the video attributes
#1-#9
_ssss_eeee_tttt______bbbb_aaaa_cccc_kkkk_gggg_rrrr_oooo_uuuu_nnnn_dddd _ssss_eeee_tttt_bbbb _SSSS_bbbb Set current background color
_ssss_eeee_tttt______bbbb_oooo_tttt_tttt_oooo_mmmm______mmmm_aaaa_rrrr_gggg_iiii_nnnn _ssss_mmmm_gggg_bbbb _ZZZZ_kkkk Set bottom margin at current
line
_ssss_eeee_tttt______bbbb_oooo_tttt_tttt_oooo_mmmm______mmmm_aaaa_rrrr_gggg_iiii_nnnn______pppp_aaaa_rrrr_mmmm _ssss_mmmm_gggg_bbbb_pppp _ZZZZ_llll Set bottom margin at line #1
or #2 lines from bottom
_ssss_eeee_tttt______cccc_oooo_llll_oooo_rrrr______bbbb_aaaa_nnnn_dddd _ssss_eeee_tttt_cccc_oooo_llll_oooo_rrrr_YYYY_zzzz Change to ribbon color #1
_ssss_eeee_tttt______cccc_oooo_llll_oooo_rrrr______pppp_aaaa_iiii_rrrr _ssss_cccc_pppp _ssss_pppp Set current color-pair
_ssss_eeee_tttt______ffff_oooo_rrrr_eeee_gggg_rrrr_oooo_uuuu_nnnn_dddd _ssss_eeee_tttt_ffff _SSSS_ffff Set current foreground color1
_ssss_eeee_tttt______llll_eeee_ffff_tttt______mmmm_aaaa_rrrr_gggg_iiii_nnnn _ssss_mmmm_gggg_llll _MMMM_LLLL Set left margin at current line
_ssss_eeee_tttt______llll_eeee_ffff_tttt______mmmm_aaaa_rrrr_gggg_iiii_nnnn______pppp_aaaa_rrrr_mmmm _ssss_mmmm_gggg_llll_pppp _ZZZZ_mmmm Set left (right) margin at
column #1 (#2)
_ssss_eeee_tttt______llll_rrrr______mmmm_aaaa_rrrr_gggg_iiii_nnnn _ssss_mmmm_gggg_llll_rrrr _MMMM_LLLL Sets both left and right
margins
_ssss_eeee_tttt______pppp_aaaa_gggg_eeee______llll_eeee_nnnn_gggg_tttt_hhhh _ssss_llll_iiii_nnnn_eeee_ssss _YYYY_ZZZZ Set page length to #1 lines
(use tparm)
_ssss_eeee_tttt______pppp_gggg_llll_eeee_nnnn______iiii_nnnn_cccc_hhhh _ssss_llll_eeee_nnnn_gggg_tttt_hhhh _YYYY_IIII Set page length to #1
hundredths of an inch (use
tparm)
_ssss_eeee_tttt______rrrr_iiii_gggg_hhhh_tttt______mmmm_aaaa_rrrr_gggg_iiii_nnnn _ssss_mmmm_gggg_rrrr _MMMM_RRRR Set right margin at current
column
_ssss_eeee_tttt______rrrr_iiii_gggg_hhhh_tttt______mmmm_aaaa_rrrr_gggg_iiii_nnnn______pppp_aaaa_rrrr_mmmm _ssss_mmmm_gggg_rrrr_pppp _ZZZZ_nnnn Set right margin at column #1
_ssss_eeee_tttt______tttt_aaaa_bbbb _hhhh_tttt_ssss _ssss_tttt Set a tab in all rows, current
column
_ssss_eeee_tttt______tttt_bbbb______mmmm_aaaa_rrrr_gggg_iiii_nnnn _ssss_mmmm_gggg_tttt_bbbb _MMMM_TTTT Sets both top and bottom
_ssss_eeee_tttt______tttt_oooo_pppp______mmmm_aaaa_rrrr_gggg_iiii_nnnn _ssss_mmmm_gggg_tttt _ZZZZ_oooo Set top margin at current line
_ssss_eeee_tttt______tttt_oooo_pppp______mmmm_aaaa_rrrr_gggg_iiii_nnnn______pppp_aaaa_rrrr_mmmm _ssss_mmmm_gggg_tttt_pppp _ZZZZ_pppp Set top (bottom) margin at
line #1 (#2)
_ssss_eeee_tttt______wwww_iiii_nnnn_dddd_oooo_wwww _wwww_iiii_nnnn_dddd _wwww_iiii Current window is lines #1-#2
cols #3-#4
_ssss_tttt_aaaa_rrrr_tttt______bbbb_iiii_tttt______iiii_mmmm_aaaa_gggg_eeee _ssss_bbbb_iiii_mmmm _ZZZZ_qqqq Start printing bit image
graphics
_ssss_tttt_aaaa_rrrr_tttt______cccc_hhhh_aaaa_rrrr______ssss_eeee_tttt______dddd_eeee_ffff _ssss_cccc_ssss_dddd _ZZZZ_rrrr Start definition of a character
set
_ssss_tttt_oooo_pppp______bbbb_iiii_tttt______iiii_mmmm_aaaa_gggg_eeee _rrrr_bbbb_iiii_mmmm _ZZZZ_ssss End printing bit image
graphics
_ssss_tttt_oooo_pppp______cccc_hhhh_aaaa_rrrr______ssss_eeee_tttt______dddd_eeee_ffff _rrrr_cccc_ssss_dddd _ZZZZ_tttt End definition of a character
set
_ssss_uuuu_bbbb_ssss_cccc_rrrr_iiii_pppp_tttt______cccc_hhhh_aaaa_rrrr_aaaa_cccc_tttt_eeee_rrrr_ssss _ssss_uuuu_bbbb_cccc_ssss _ZZZZ_uuuu List of ``subscriptable''
characters
_ssss_uuuu_pppp_eeee_rrrr_ssss_cccc_rrrr_iiii_pppp_tttt______cccc_hhhh_aaaa_rrrr_aaaa_cccc_tttt_eeee_rrrr_ssss _ssss_uuuu_pppp_cccc_ssss _ZZZZ_vvvv List of ``superscriptable''
characters
_tttt_aaaa_bbbb _hhhh_tttt _tttt_aaaa Tab to next 8-space hardware
tab stop
_tttt_hhhh_eeee_ssss_eeee______cccc_aaaa_uuuu_ssss_eeee______cccc_rrrr _dddd_oooo_cccc_rrrr _ZZZZ_wwww Printing any of these chars
causes _cccc_rrrr
_tttt_oooo______ssss_tttt_aaaa_tttt_uuuu_ssss______llll_iiii_nnnn_eeee _tttt_ssss_llll _tttt_ssss Go to status line, col #1
_uuuu_nnnn_dddd_eeee_rrrr_llll_iiii_nnnn_eeee______cccc_hhhh_aaaa_rrrr _uuuu_cccc _uuuu_cccc Underscore one char and move
past it
_uuuu_pppp______hhhh_aaaa_llll_ffff______llll_iiii_nnnn_eeee _hhhh_uuuu _hhhh_uuuu Half-line up (reverse 1/2
linefeed)
_xxxx_oooo_ffff_ffff______cccc_hhhh_aaaa_rrrr_aaaa_cccc_tttt_eeee_rrrr _xxxx_oooo_ffff_ffff_cccc _XXXX_FFFF X-off character
_xxxx_oooo_nnnn______cccc_hhhh_aaaa_rrrr_aaaa_cccc_tttt_eeee_rrrr _xxxx_oooo_nnnn_cccc _XXXX_NNNN X-on character
_zzzz_eeee_rrrr_oooo______mmmm_oooo_tttt_iiii_oooo_nnnn _zzzz_eeee_rrrr_oooo_mmmm _ZZZZ_xxxx No motion for the subsequent
character
SSSSaaaammmmpppplllleeee EEEEnnnnttttrrrryyyy
The following entry, which describes the AT&T 610 terminal, is among the
more complex entries in the _tttt_eeee_rrrr_mmmm_iiii_nnnn_ffff_oooo file as of this writing.
The most effective way to prepare a device description is by imitating
the description of a similar device in _tttt_eeee_rrrr_mmmm_iiii_nnnn_ffff_oooo and building up a
description gradually, using partial descriptions with _vvvv_iiii to check that
they are correct. Be aware that a very unusual device may expose
deficiencies in the ability of the _tttt_eeee_rrrr_mmmm_iiii_nnnn_ffff_oooo file to describe it or the
inability of _vvvv_iiii to work with that device. To test a new device
description, set the environment variable _TTTT_EEEE_RRRR_MMMM_IIII_NNNN_FFFF_OOOO to the pathname of a
directory containing the compiled description you are working on and
programs will look there rather than in _////_uuuu_ssss_rrrr_////_ssss_hhhh_aaaa_rrrr_eeee_////_llll_iiii_bbbb_////_tttt_eeee_rrrr_mmmm_iiii_nnnn_ffff_oooo. To get
the padding for insert-line correct (if the device manufacturer did not
document it) a severe test is to comment out _xxxx_oooo_nnnn, edit a large file at
9600 baud with _vvvv_iiii, delete 16 or so lines from the middle of the screen,
and then press the _uuuu key several times quickly. If the display is
corrupted, more padding is usually needed. A similar test can be used
Note that each escape sequence requires a _0000 to turn off other modes
before turning on its own mode. Also note that, as suggested above,
_s_t_a_n_d_o_u_t is set up to be the combination of _r_e_v_e_r_s_e and _d_i_m. Also,
because this terminal has no _b_o_l_d mode, _b_o_l_d is set up as the combination
of _r_e_v_e_r_s_e and _u_n_d_e_r_l_i_n_e. In addition, to allow combinations, such as
_u_n_d_e_r_l_i_n_e+_b_l_i_n_k, the sequence to use would be _\\\\_EEEE_[[[[_0000_;;;;_3333_;;;;_5555_mmmm. The terminal
doesn't have _p_r_o_t_e_c_t mode, either, but that cannot be simulated in any
way, so _pppp_8888 is ignored. The _a_l_t_c_h_a_r_s_e_t mode is different in that it is
either _^^^^_OOOO or _^^^^_NNNN, depending on whether it is off or on. If all modes were
to be turned on, the sequence would be _\\\\_EEEE_[[[[_0000_;;;;_3333_;;;;_4444_;;;;_5555_;;;;_7777_;;;;_8888_mmmm_^^^^_NNNN.
Now look at when different sequences are output. For example, _;;;;_3333 is
output when either _pppp_2222 or _pppp_6666 is true, that is, if either _u_n_d_e_r_l_i_n_e or _b_o_l_d
modes are turned on. Writing out the above sequences, along with their
dependencies, gives the following:
Sequence When to Output Terminfo Translation
_\\\\_EEEE_[[[[_0000 always _\\\\_EEEE_[[[[_0000
_;;;;_3333 if _pppp_2222 or _pppp_6666 _%%%%_????_%%%%_pppp_2222_%%%%_pppp_6666_%%%%_||||_%%%%_tttt_;;;;_3333_%%%%_;;;;
_;;;;_4444 if _pppp_1111 or _pppp_3333 or _pppp_6666 _%%%%_????_%%%%_pppp_1111_%%%%_pppp_3333_%%%%_||||_%%%%_pppp_6666_%%%%_||||_%%%%_tttt_;;;;_4444_%%%%_;;;;
_;;;;_5555 if _pppp_4444 _%%%%_????_%%%%_pppp_4444_%%%%_tttt_;;;;_5555_%%%%_;;;;
_;;;;_7777 if _pppp_1111 or _pppp_5555 _%%%%_????_%%%%_pppp_1111_%%%%_pppp_5555_%%%%_||||_%%%%_tttt_;;;;_7777_%%%%_;;;;
_;;;;_8888 if _pppp_7777 _%%%%_????_%%%%_pppp_7777_%%%%_tttt_;;;;_8888_%%%%_;;;;
_mmmm always _mmmm
_^^^^_NNNN or _^^^^_OOOO if _pppp_9999 _^^^^_NNNN, else _^^^^_OOOO _%%%%_????_%%%%_pppp_9999_%%%%_tttt_^^^^_NNNN_%%%%_eeee_^^^^_OOOO_%%%%_;;;;
Putting this all together into the _ssss_gggg_rrrr sequence gives:
If the device has a keypad that transmits sequences when the keys are
pressed, this information can also be specified. Note that it is not
possible to handle devices where the keypad only works in local (this
applies, for example, to the unshifted Hewlett-Packard 2621 keys). If
the keypad can be set to transmit or not transmit, specify these
sequences as _ssss_mmmm_kkkk_xxxx and _rrrr_mmmm_kkkk_xxxx. Otherwise the keypad is assumed to always
transmit.
The sequences sent by the left arrow, right arrow, up arrow, down arrow,
and home keys can be given as _kkkk_cccc_uuuu_bbbb_1111_,,,, _kkkk_cccc_uuuu_ffff_1111_,,,, _kkkk_cccc_uuuu_uuuu_1111_,,,, _kkkk_cccc_uuuu_dddd_1111_,,,, and _kkkk_hhhh_oooo_mmmm_eeee,
respectively. If there are function keys such as f0, f1, ..., f63, the
sequences they send can be specified as _kkkk_ffff_0000_,,,, _kkkk_ffff_1111_,,,, _...._...._...._,,,, _kkkk_ffff_6666_3333. If the
first 11 keys have labels other than the default f0 through f10, the
labels can be given as _llll_ffff_0000_,,,, _llll_ffff_1111_,,,, _...._...._...._,,,, _llll_ffff_1111_0000. The codes transmitted by
certain other special keys can be given: _kkkk_llll_llll (home down), _kkkk_bbbb_ssss
(backspace), _kkkk_tttt_bbbb_cccc (clear all tabs), _kkkk_cccc_tttt_aaaa_bbbb (clear the tab stop in this
has tab stops that can be saved in nonvolatile memory, the _tttt_eeee_rrrr_mmmm_iiii_nnnn_ffff_oooo
description can assume that they are properly set. If there are commands
to set and clear tab stops, they can be given as _tttt_bbbb_cccc (clear all tab
stops) and _hhhh_tttt_ssss (set a tab stop in the current column of every row).
Other capabilities include: _iiii_ssss_1111, _iiii_ssss_2222, and _iiii_ssss_3333, initialization strings
for the device; _iiii_pppp_rrrr_oooo_gggg, the pathname of a program to be run to initialize
the device; and _iiii_ffff, the name of a file containing long initialization
strings. These strings are expected to set the device into modes
consistent with the rest of the _tttt_eeee_rrrr_mmmm_iiii_nnnn_ffff_oooo description. They must be sent
to the device each time the user logs in and be output in the following
order: run the program _iiii_pppp_rrrr_oooo_gggg; output _iiii_ssss_1111; output _iiii_ssss_2222; set the margins
using _mmmm_gggg_cccc, _ssss_mmmm_gggg_llll and _ssss_mmmm_gggg_rrrr; set the tabs using _tttt_bbbb_cccc and _hhhh_tttt_ssss; print the file
_iiii_ffff; and finally output _iiii_ssss_3333. This is usually done using the _iiii_nnnn_iiii_tttt option
of _tttt_pppp_uuuu_tttt.
Most initialization is done with _iiii_ssss_2222. Special device modes can be set up
without duplicating strings by putting the common sequences in _iiii_ssss_2222 and
special cases in _iiii_ssss_1111 and _iiii_ssss_3333. Sequences that do a reset from a totally
unknown state can be given as _rrrr_ssss_1111, _rrrr_ssss_2222, _rrrr_ffff, and _rrrr_ssss_3333, analogous to _iiii_ssss_1111,
_iiii_ssss_2222, _iiii_ssss_3333, and _iiii_ffff. (The method using files, _iiii_ffff and _rrrr_ffff, is used for a few
terminals, from _////_uuuu_ssss_rrrr_////_ssss_hhhh_aaaa_rrrr_eeee_////_llll_iiii_bbbb_////_tttt_aaaa_bbbb_ssss_eeee_tttt_////_****; however, the recommended method
is to use the initialization and reset strings.) These strings are
output by _tttt_pppp_uuuu_tttt reset, which is used when the terminal gets into a wedged
state. Commands are normally placed in _rrrr_ssss_1111, _rrrr_ssss_2222, _rrrr_ssss_3333, and _rrrr_ffff only if
they produce annoying effects on the screen and are not necessary when
logging in. For example, the command to set a terminal into 80-column
mode would normally be part of _iiii_ssss_2222, but on some terminals it causes an
annoying glitch on the screen and is not normally needed because the
terminal is usually already in 80-column mode.
If a more complex sequence is needed to set the tabs than can be
described by using _tttt_bbbb_cccc and _hhhh_tttt_ssss, the sequence can be placed in _iiii_ssss_2222 or _iiii_ffff.
Any margin can be cleared with _mmmm_gggg_cccc. (For instructions on how to specify
commands to set and clear margins, see "Margins" below under "PRINTER
If the terminal requires other than a null (zero) character as a pad,
then this can be given as _pppp_aaaa_dddd. Only the first character of the _pppp_aaaa_dddd
string is used. If the terminal does not have a pad character, specify
_nnnn_pppp_cccc.
If the terminal can move up or down half a line, this can be indicated
with _hhhh_uuuu (half-line up) and _hhhh_dddd (half-line down). This is primarily useful
for superscripts and subscripts on hardcopy terminals. If a hardcopy
terminal can eject to the next page (form feed), give this as _ffff_ffff (usually
control L).
If there is a command to repeat a given character a given number of times
(to save time transmitting a large number of identical characters) this
can be indicated with the parameterized string _rrrr_eeee_pppp. The first parameter
is the character to be repeated and the second is the number of times to
repeat it. Thus, _tttt_pppp_aaaa_rrrr_mmmm_((((_rrrr_eeee_pppp_eeee_aaaa_tttt______cccc_hhhh_aaaa_rrrr_,,,, _''''_xxxx_''''_,,,, _1111_0000_)))) is the same as _xxxx_xxxx_xxxx_xxxx_xxxx_xxxx_xxxx_xxxx_xxxx_xxxx_....
If the terminal has a settable command character, such as the Tektronix
4025, this can be indicated with _cccc_mmmm_dddd_cccc_hhhh. A prototype command character is
chosen which is used in all capabilities. This character is given in the
_cccc_mmmm_dddd_cccc_hhhh capability to identify it. The following convention is supported
on some UNIX systems: If the environment variable _CCCC_CCCC exists, all
occurrences of the prototype character are replaced with the character in
_CCCC_CCCC.
Terminal descriptions that do not represent a specific kind of known
terminal, such as _s_w_i_t_c_h, _d_i_a_l_u_p, _p_a_t_c_h, and _n_e_t_w_o_r_k, should include the
_gggg_nnnn (generic) capability so that programs can complain that they do not
know how to talk to the terminal. (This capability does not apply to
_v_i_r_t_u_a_l terminal descriptions for which the escape sequences are known.)
If the terminal is one of those supported by the UNIX system virtual
terminal protocol, the terminal number can be given as _vvvv_tttt. A line-turn-
around sequence to be transmitted before doing reads should be specified
in _rrrr_ffff_iiii.
If the device uses xon/xoff handshaking for flow control, give _xxxx_oooo_nnnn.
Padding information should still be included so that routines can make
better decisions about costs, but actual pad characters will not be
transmitted. Sequences to turn on and off xon/xoff handshaking may be
given in _ssss_mmmm_xxxx_oooo_nnnn and _rrrr_mmmm_xxxx_oooo_nnnn. If the characters used for handshaking are not
_^^^^_SSSS and _^^^^_QQQQ, they may be specified with _xxxx_oooo_nnnn_cccc and _xxxx_oooo_ffff_ffff_cccc.
If the terminal has a ``meta key'' which acts as a shift key, setting the
8th bit of any character transmitted, this fact can be indicated with _kkkk_mmmm.
Otherwise, software will assume that the 8th bit is parity and it will
usually be cleared. If strings exist to turn this ``meta mode'' on and
off, they can be given as _ssss_mmmm_mmmm and _rrrr_mmmm_mmmm.
Five new sets of strings are used to describe the capabilities printers
have of enhancing printed text.
Enhanced Printing
_ssss_ssss_hhhh_mmmm Enter shadow-printing mode
_rrrr_ssss_hhhh_mmmm Exit shadow-printing mode
_ssss_iiii_tttt_mmmm Enter italicizing mode
_rrrr_iiii_tttt_mmmm Exit italicizing mode
_ssss_wwww_iiii_dddd_mmmm Enter wide character mode
_rrrr_wwww_iiii_dddd_mmmm Exit wide character mode
_ssss_ssss_uuuu_pppp_mmmm Enter superscript mode
_rrrr_ssss_uuuu_pppp_mmmm Exit superscript mode
_ssss_uuuu_pppp_cccc_ssss List of characters available as superscripts
_ssss_ssss_uuuu_bbbb_mmmm Enter subscript mode
_rrrr_ssss_uuuu_bbbb_mmmm Exit subscript mode
_ssss_uuuu_bbbb_cccc_ssss List of characters available as subscripts
If a printer requires the _ssss_ssss_hhhh_mmmm control sequence before every character to
be shadow-printed, the _rrrr_ssss_hhhh_mmmm string is left blank. Thus programs that
find a control sequence in _ssss_ssss_hhhh_mmmm but none in _rrrr_ssss_hhhh_mmmm should use the _ssss_ssss_hhhh_mmmm
control sequence before every character to be shadow-printed; otherwise,
the _ssss_ssss_hhhh_mmmm control sequence should be used once before the set of
characters to be shadow-printed, followed by _rrrr_ssss_hhhh_mmmm. The same is also true
of each of the _ssss_iiii_tttt_mmmm/_rrrr_iiii_tttt_mmmm, _ssss_wwww_iiii_dddd_mmmm/_rrrr_wwww_iiii_dddd_mmmm, _ssss_ssss_uuuu_pppp_mmmm/_rrrr_ssss_uuuu_pppp_mmmm, and _ssss_ssss_uuuu_bbbb_mmmm/ _rrrr_ssss_uuuu_bbbb_mmmm
pairs.
Note that _tttt_eeee_rrrr_mmmm_iiii_nnnn_ffff_oooo also has a capability for printing emboldened text
(_bbbb_oooo_llll_dddd). While shadow printing and emboldened 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
giving a negative pin number. If a position is skipped in _pppp_oooo_rrrr_dddd_eeee_rrrr, a 0
bit is used. If a position has a lower case `x' instead of a pin number,
a 1 bit is used in the skipped position. For consistency, a lower case
`o' can be used to represent a 0 filled, skipped bit. There must be a
multiple of 8 bit positions used or skipped in _pppp_oooo_rrrr_dddd_eeee_rrrr; if not, 0 bits are
used to fill the last byte in the least significant bits. The offset, if
given, is added to each data byte; the offset can be negative.
Some examples may help clarify the use of the _pppp_oooo_rrrr_dddd_eeee_rrrr string. The AT&T
470, AT&T 475 and C.Itoh 8510 printers provide eight pins for graphics.
The pins are identified top to bottom by the 8 bits in a byte, from least
significant to most. The _pppp_oooo_rrrr_dddd_eeee_rrrr strings for these printers would be
_8888_,,,,_7777_,,,,_6666_,,,,_5555_,,,,_4444_,,,,_3333_,,,,_2222_,,,,_1111. The AT&T 478 and AT&T 479 printers also provide eight
pins for graphics. However, the pins are identified in the reverse
order. The _pppp_oooo_rrrr_dddd_eeee_rrrr strings for these printers would be _1111_,,,,_2222_,,,,_3333_,,,,_4444_,,,,_5555_,,,,_6666_,,,,_7777_,,,,_8888.
The AT&T 5310, AT&T 5320, DEC LA100, and DEC LN03 printers provide six
pins for graphics. The pins are identified top to bottom by the decimal
values 1, 2, 4, 8, 16 and 32. These correspond to the low six bits in an
8-bit byte, although the decimal values are further offset by the value
63. The _pppp_oooo_rrrr_dddd_eeee_rrrr string for these printers would be _,,,,_,,,,_6666_,,,,_5555_,,,,_4444_,,,,_3333_,,,,_2222_,,,,_1111_;;;;_6666_3333, or
_////_uuuu_ssss_rrrr_////_ssss_hhhh_aaaa_rrrr_eeee_////_llll_iiii_bbbb_////_...._CCCC_OOOO_RRRR_EEEE_tttt_eeee_rrrr_mmmm_////_????_////_**** subset of compiled terminal description
database
_////_uuuu_ssss_rrrr_////_ssss_hhhh_aaaa_rrrr_eeee_////_llll_iiii_bbbb_////_tttt_aaaa_bbbb_ssss_eeee_tttt_////_**** tab settings for some terminals, in a