Creating Device Descriptions (contd.)
Names of capabilities (contd.)
String Capabilities (contd.).
Table 3-10. String Capabilities
-------------------------------------------------------------------------------------------------
| | | | |
| TInfo | TCap | Variable | Description |
| | | | |
| | | | |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| khome | kh | key_home | Sent by home key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| khts | kT | key_stab | Sent by set-tab key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kich1 | kI | key_ic | Sent by ins |
| | | | char/enter ins mode |
| | | | key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kil1 | kA | key_il | Sent by insert line |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kind | kF | key_sf | Sent by |
| | | | scroll-forward/down |
| | | | key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kll | kH | key_ll | Sent by home down key |
| | | | (lower left) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kmov | %4 | key_move | Sent by move key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kmrk | %2 | key_mark | Sent by mark key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kmsg | %3 | key_message | Sent by message key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| knp | kN | key_npage | Sent by next-page key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| knxt | %5 | key_next | Sent by next-object |
| | | | key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kopn | %6 | key_open | Sent by open key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kopt | %7 | key_options | Sent by options key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kpp | kP | key_ppage | Sent by previous-page |
| | | | key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kprt | %9 | key_print | Sent by print or copy |
| | | | key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kprv | %8 | key_previous | Sent by |
| | | | previous-object key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| krdo | %0 | key_redo | Sent by redo key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kref | &1 | key_reference | Sent by reference key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kres | &5 | key_resume | Sent by resume key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| krfr | &2 | key_refresh | Sent by refresh key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kri | kR | key_sr | Sent by |
| | | | scroll-backward/up |
| | | | key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| krmir | kM | key_eic | Sent by rmir or smir |
| | | | in insert mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| krpl | &3 | key_replace | Sent by replace key |
| | | | |
-------------------------------------------------------------------------------------------------
Table 3-10. String Capabilities (cont.)
-------------------------------------------------------------------------------------------------
| | | | |
| TInfo | TCap | Variable | Description |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| krst | &4 | key_restart | Sent by restart key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| ksav | &6 | key_save | Sent by save key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kslt | *6 | key_select | Sent by select key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kspd | &7 | key_suspend | Sent by suspend key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| ktbc | ka | key_catab | Sent by |
| | | | clear-all-tabs key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| kund | &8 | key_undo | Sent by undo key |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf0 | l0 | lab_f0 | Labels on function |
| | | | key f0 if not f0 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf1 | l1 | lab_f1 | Labels on function |
| | | | key f1 if not f1 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf2 | l2 | lab_f2 | Labels on function |
| | | | key f2 if not f2 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf3 | l3 | lab_f3 | Labels on function |
| | | | key f3 if not f3 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf4 | l4 | lab_f4 | Labels on function |
| | | | key f4 if not f4 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf5 | l5 | lab_f5 | Labels on function |
| | | | key f5 if not f5 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf6 | l6 | lab_f6 | Labels on function |
| | | | key f6 if not f6 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf7 | l7 | lab_f7 | Labels on function |
| | | | key f7 if not f7 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf8 | l8 | lab_f8 | Labels on function |
| | | | key f8 if not f8 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf9 | l9 | lab_f9 | Labels on function |
| | | | key f9 if not f9 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lf10 | la | lab_f10 | Labels on function |
| | | | key f10 if not f10 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| ll | ll | cursor_to_ll | Last line, first |
| | | | column (if no cup) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| lpi | ZB | change_line_pitch | Change number of |
| | | | lines per inch |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mc0 | ps | print_screen | Print contents of the |
| | | | screen |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mc4 | pf | prtr_off | Turn off the printer |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mc5 | po | prtr_on | Turn on the printer |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mc5p | pO | prtr_non | Turn on the printer |
| | | | for #1 bytes |
| | | | |
-------------------------------------------------------------------------------------------------
Table 3-10. String Capabilities (cont.)
-------------------------------------------------------------------------------------------------
| | | | |
| TInfo | TCap | Variable | Description |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mcub | Zg | parm_left_micro | Like parm_left_cursor |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mcub1 | Za | micro_left | Like cursor_left for |
| | | | micro adjustment |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mcud | Zf | parm_down_micro | Like parm_down_cursor |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mcud1 | ZZ | micro_down | Like cursor_down for |
| | | | micro adjustment |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mcuf | Zh | parm_right_micro | Like |
| | | | parm_right_cursor |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mcuf1 | Zb | micro_right | Like cursor_right for |
| | | | micro adjustment |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mcuu | Zi | parm_up_micro | Like parm_up_cursor |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mcuu1 | Zd | micro_up | Like cursor_up for |
| | | | micro adjustment |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mgc | MC | clear_margins | Clear all margins |
| | | | top, bottom, |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mhpa | ZY | micro_column_address | Like column_address |
| | | | for micro adjustment |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mrcup | CM | cursor_mem_address | Memory relative |
| | | | cursor addressing |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| mvpa | Zc | micro_row_address | Like row_address for |
| | | | micro adjustment |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| nel | nw | newline | Produces newline |
| | | | (behaves like cr |
| | | | followed by lf) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| oc | oc 0 | orig_colors | Set all color(pair)s |
| | | | to the original ones |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| op | op | orig_pair | Set default color |
| | | | pair to the original |
| | | | one |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| pad | pc | pad_char | Pad character (rather |
| | | | than null) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| pfkey | pk | pkey_key | Prog funct key #1 to |
| | | | type string #2 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| pfloc | pl | pkey_local | Prog funct key #1 to |
| | | | execute string #2 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| pfx | px | pkey_xmit | Prog funct key #1 to |
| | | | xmit string #2 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| pln | pn | plab_norm | Prog label #1 to show |
| | | | string #2 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| porder | Ze | order_of_pins | Matches software bits |
| | | | to print-head pins |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| prot | mp | enter_protected_mode | Turn on protected |
| | | | mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rbim | Zs | stop_bit_image | Stop printing bit |
| | | | image graphics |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rc | rc | restore_cursor | Restore cursor to |
| | | | position of last sc |
| | | | |
-------------------------------------------------------------------------------------------------
Table 3-10. String Capabilities (cont.)
-------------------------------------------------------------------------------------------------
| | | | |
| TInfo | TCap | Variable | Description |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rcsd | Zt | stop_char_set_def | Stop definition of |
| | | | character set |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rep | rp | repeat_char | Repeat char #1 #2 |
| | | | times |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rev | mr | enter_reverse_mode | Turn on reverse video |
| | | | mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rf | rf | reset_file | Name of file |
| | | | containing reset |
| | | | string |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rfi | RF | req_for_input | Send next input |
| | | | character (for ptys) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| ri | ri | scroll_reverse | Scroll text down |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rin | SR | parm_rindex | Scroll backward #1 |
| | | | lines |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| ritm | ZR | exit_italics_mode | Disable italics |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rlm | ZS | exit_leftward_mode | Enable rightward |
| | | | (normal) carriage |
| | | | motion |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmacs | ae | exit_alt_charset_mode | End alternate |
| | | | character set |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmam | RA | exit_am_mode | Turn off automatic |
| | | | margins |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmcup | te | exit_ca_mode | String to begin |
| | | | programs that use cup |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmdc | ed | exit_delete_mode | End delete mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmicm | ZT | exit_micro_mode | Disable micro motion |
| | | | capabilities |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmir | ei | exit_insert_mode | End insert mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmkx | ke | keypad_local | Out of keypad |
| | | | transmit mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmln | LF | label_off | Turn off soft labels |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmm | mo | meta_off | Turn off meta mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmp | rP | char_padding | Like ip, but when in |
| | | | replace mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmso | se | exit_standout_mode | End stand out mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmul | ue | exit_underline_mode | End underscore mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rmxon | RX | exit_xon_mode | Turn off XON/XOFF |
| | | | handshaking |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rs1 | r1 | reset_1string | Reset terminal |
| | | | completely to sane |
| | | | modes |
| | | | |
-------------------------------------------------------------------------------------------------
Table 3-10. String Capabilities (cont.)
-------------------------------------------------------------------------------------------------
| | | | |
| TInfo | TCap | Variable | Description |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rs2 | r2 | reset_2string | Reset terminal |
| | | | completely to sane |
| | | | modes |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rs3 | r3 | reset_3string | Reset terminal |
| | | | completely to sane |
| | | | modes |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rshm | ZU | exit_shadow_mode | Disable shadow |
| | | | printing |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| wsubm | ZV | exit_subscript_mode | Disable subscript |
| | | | printing |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rsupm | ZW | exit_supercript_mode | Disable superscript |
| | | | printing |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rum | ZX | exit_upward_mode | Enable downward |
| | | | (normal) carriage |
| | | | motion |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| rwidm | ZQ | exit_doublewide_mode | Disable double wide |
| | | | printing |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| sbim | Zq | start_bit_image | Start printing bit |
| | | | image graphics |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| sc | sc | save_cursor | Save cursor position |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| scp | sp | set_color_pair | Set current color |
| | | | pair |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| scs | Zj | select_char_set | Select character set |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| scsd | Zr | start_char_set_def | Start definition of |
| | | | character set |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| sdrfq | ZG | enter_draft_quality | Set draft quality |
| | | | print |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| setb | Sb | set_background | Set current |
| | | | background color |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| setf | Sf | set_foreground | Set current |
| | | | foreground color |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| sgr | sa | set_attributes | Define the video |
| | | | attributes |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| sgr0 | me | exit_attribute_mode | Turn off all |
| | | | attributes |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| sitm | ZH | enter_italics_mode | Enable italics |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| slm | ZI | enter_leftward_mode | Enable leftward |
| | | | carriage motion |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smacs | as | enter_alt_charset_mode| Start alternate |
| | | | character set |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smam | SA | enter_am_mode | Turn on automatic |
| | | | margins |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smcup | ti | enter_ca_mode | String to end |
| | | | programs that use cup |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smdc | dm | enter_delete_mode | Delete mode (enter) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smgb | Zk | set_bottom_margin | Set bottom margin at |
| | | | current line |
| | | | |
-------------------------------------------------------------------------------------------------
Table 3-10. String Capabilities (cont.)
-------------------------------------------------------------------------------------------------
| | | | |
| TInfo | TCap | Variable | Description |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smgbp | Zl | set_bottom_margin_parm| Set bottom margin at |
| | | | line #1 or #2 from |
| | | | bottom |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smgl | ML | set_left_margin | Set left margin at |
| | | | current column |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smglp | Zm | set_left_margin_parm | Set left (right) |
| | | | margin at column #1 |
| | | | (#2) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smgr | MR | set_right_margin | Set right margin at |
| | | | current column |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smgrp | Zn | set_right_margin_parm | Set right margin at |
| | | | column #1 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smgt | Zo | set_top_margin | Set top margin at |
| | | | current line |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smgtp | Zp | set_top_margin_parm | Set top (bottom) |
| | | | margin at line #1 |
| | | | (#2) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smicm | ZJ | enter_micro_mode | Enable micro motion |
| | | | capabilities |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smir | im | enter_insert_mode | Insert mode (enter) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smln | LO | label_on | Turn on soft labels |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smm | mm | meta_on | Turn on meta mode |
| | | | (8th bit) |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smso | so | enter_standout_mode | Begin stand out mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smul | us | enter_underline_mode | Start underscore mode |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| smxon | SX | enter_xon_mode | Turn on XON/XOFF |
| | | | handshaking |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| snlq | ZK | enter_near_letter_qualityet near-letter |
| | | | quality |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| snrmq | ZL | enter_normal_quality | Set normal quality |
| | | | print |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| sshm | ZM | enter_shadow_mode | Enable shadow |
| | | | printing |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| ssubm | ZN | enter_subscript_mode | Enable subscript |
| | | | printing |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| ssupm | ZO | enter_supercript_mode | Enable superscript |
| | | | printing |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| subcs | Zu | subscript_characters | List of |
| | | | "subscript-able" |
| | | | characters |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| sum | ZP | enter_upward_mode | Enable upward |
| | | | carriage msupcs |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| supcs | Zv | superscript_characters| List of |
| | | | "superscript-able" |
| | | | characters |
| | | | |
-------------------------------------------------------------------------------------------------
Table 3-10. String Capabilities (cont.)
-------------------------------------------------------------------------------------------------
| | | | |
| TInfo | TCap | Variable | Description |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| swidm | ZF | enter_doublewide_mode | Enable double wide |
| | | | printing |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| tbc | ct | clear_all_tabs | Clear all tab stops |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| tsl | ts | to_status_line | Go to status line |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| uc | uc | underline_char | Underscore one char |
| | | | and move past it |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| use | tc | N/A | Read capabilities |
| | | | from entry |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| vpa | cv | row_address | Like hpa, but sets |
| | | | row |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| wind | wi | set_window | Current window is |
| | | | lines #1 - #2 cols #3 |
| | | | - #4 |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| xoffc | XF | xoff_character | XOFF character |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| xonc | XN | xon_character | XON character |
| | | | |
-------------------------------------------------------------------------------------------------
| | | | |
| zerom | Zx | zero_motion | No motion for the |
| | | | subsequent character |
| | | | |
-------------------------------------------------------------------------------------------------
The following sections group these categories and look at each group in
detail.