The commands with "=" behind them are string values, those with "#" behind them are numeric values and the rest are boolean values. The values after the # will be a positive number and values after the = will be a character or string.
| Terminfo | Termcap | |
| Command | Command | Description |
| kbeg= | @1 | Describe beginning key |
| kcan= | @2 | Describe cancel key |
| kclo= | @3 | Describe close key |
| kcmd= | @4 | Describe command key |
| kcpy= | @5 | Describe copy key |
| kcrt= | @6 | Describe create key |
| kend= | @7 | Describe end key |
| kent= | @8 | Describe enter/send key |
| kext= | @9 | Describe exit key |
| kfnd= | @0 | Describe find key |
| khelp= | %1 | Describe help key |
| kmrk= | %2 | Describe mark key |
| kmsg= | %3 | Describe message key |
| kmov= | %4 | Describe move key |
| knxt= | %5 | Describe next-object key |
| kopn= | %6 | Describe open key |
| kopt= | %7 | Describe options key |
| kprv= | %8 | Describe previous-object key |
| kprt= | %9 | Describe print or copy key |
| krdo= | %0 | Describe redo key |
| kref= | &1 | Describe reference key |
| krfr= | &2 | Describe refresh key |
| krpl= | &3 | Describe replace key |
| krst= | &4 | Describe restart key |
| kres= | &5 | Describe resume key |
| ksav= | &6 | Describe save key |
| kspd= | &7 | Describe suspend key |
| kund= | &8 | Describe undo key |
| kBEG= | &9 | Describe shifted beginning key |
| kCAN= | &0 | Describe shifted cancel key |
| kspd= | &7 | Describe suspend key |
| rmacs= | ae= | End using alternate character set. |
| il= | AL= | Add some number of lines below the cursor. |
| il1= | al= | Add a line below the cursor. |
| am | am | Auto margin wrap around |
| smacs= | as= | Start using alternate character set. |
| bel= | bl= | Ring the audio bell. |
| BL= | |
| obsolete | bs= | Sets CTRL H (^H) to backspace for terminfo only. |
| cbt= | bt= | Moves the cursor to the previous tab stop |
| bw | bw | The terminal can can be wrap backwards to the previous line |
| el1= | cb= | Clear from the beginning of the line to the cursor. |
| ed= | cd= | Clear the display after the cursor. |
| el= | ce= | Clear to the end of the line. |
| CH= | |
| hpa= | ch= | Move cursor horizontally on its line to some specified column. |
| clear= | cl= | Clears the screen from the cursor to the upper left |
| mrcup= | CM= | Describe a sequence for cursor motion relative to memory. |
| cup= | cm= | Describe a sequence for cursor motion. |
| cols# | co# | The number of columns the screen has. |
| cr= | cr= | Defines carriage return. |
| CS= | |
| CT= | |
| tbc= | ct= | Clear all tab stops. |
| cudl= | Defines character that brings the cursor down one row. |
| CV= | |
| vpa= | cv= | Move cursor Vertically on its column to some line. |
| da | da | Boolean, display retained lines above the screen. |
| db | db | Boolean, display retained lines below the screen. |
| dch= | DC= | Delete some number of characters starting at the cursor. |
| dch1= | dc= | Delete the character at the cursor. |
| dl= | DL= | Delete some number of lines including and below the line with the cursor. |
| dl1= | dl= | Delete the current line. |
| smdc= | dm= | Begin delete mode. |
| cud= | DO= | Move cursor down some number of rows. |
| cudl= | do= | moves cursor down |
| dsl= | ds= | Turn off or erase the status line. |
| enacs= | eA= | Enable alternate character set. |
| ech= | ec= | Erase some number of characters starting at the cursor |
| rmdc= | ed= | End delete mode |
| rmir= | ei= | End insert mode. |
| eo | eo | A space erases all characters at cursor even though terminal overstrikes. |
| eslok | es | Boolean, escape sequences and special characters work in the status line. |
| kf11= | F1= | The string sent by F11 |
| kf12= | F2= | The string sent by F12 |
| kf13= | F3= | The string sent by F13 |
| kf14= | F4= | The string sent by F14 |
| kf15= | F5= | The string sent by F15 |
| kf16= | F6= | The string sent by F16 |
| kf17= | F7= | The string sent by F17 |
| kf18= | F8= | The string sent by F18 |
| kf19= | F9= | The string sent by F19 |
| kf20= | FA= | The string sent by F20 |
| fsl= | fs= | From status, return the cursor to its position before going to the status line. |
| chts | HC | The cursor will be hard to see when it is not on the bottom line. |
| hd= | hd= | Move the cursor down half a line. |
| home= | ho= | moves cursor home |
| hs | hs | Boolean, terminal has status lines. |
| hu= | hu= | Move the cursor up half a line. |
| is1= | i1= | Initialization string 1 for terminal initialization. |
| is3= | i3= | Initialization string 3 for terminal initialization. |
| ich= | IC= | Insert some number of spaces after the character |
| ich1= | ic= | Insert a single blank space. |
| if= | if= | Initialization file containing long initialization strings. |
| IM= | |
| smir= | im= | Begin insert mode. |
| in | in | Boolean, NULLs are used to fill whitespace on screen |
| iprog= | iP= | Init program |
| ip= | ip= | Insert pad |
| is2= | is= | Initialization string 2 for terminal initialization. |
| it# | it# | Initial number of spaces between tabs. |
| ka1= | K1= | String sent by upper left key of keypad |
| kb2= | K2= | String sent by upper right key of keypad |
| ka3= | K3= | String sent by center key of keypad |
| kc1= | K4= | String sent by lower left key of keypad |
| kc3= | K5= | String sent by lower right key of keypad |
| kf0= | k0= | The string sent by F0 |
| kf1= | k1= | The string sent by F1 |
| kf2= | k2= | The string sent by F2 |
| kf3= | k3= | The string sent by F3 |
| kf4= | k4= | The string sent by F4 |
| kf5= | k5= | The string sent by F5 |
| kf6= | k6= | The string sent by F6 |
| kf7= | k7= | The string sent by F7 |
| kf8= | k8= | The string sent by F8 |
| kf9= | k9= | The string sent by F9 |
| kf10 | k;= | The string sent by F10 |
| kil1= | kA= | String sent by insert line |
| ktbc= | ka= | String sent by clear all tabs. |
| kcbt= | kB= | String sent by back tab. |
| kbs= | kb= | String sent by backspace. |
| kclr= | kC= | String sent by clear screen. |
| kdch1= | kD= | String sent by delete character. |
| kcudl= | kd= | What is sent by the down arrow key. |
| kel= | kE= | String sent by clear to end of line. |
| rmkx= | ke= | Turn keypad off |
| kind= | kF= | String sent by scroll down. |
| kll= | kH= | String sent by home down to lower left. |
| khome= | kh= | What is sent by the home key |
| kich1= | kI= | String sent by insert character. |
| kdl1= | kL= | String sent by delete line. |
| kcubl= | kl= | What is sent by the left arrow key |
| krmir= | kM= | String sent by exit insert mode. |
| knp= | kN= | String sent by next page. |
| kn# | The number of function keys defined. |
| kpp= | kP= | String sent by previous page. |
| kri= | kR= | String sent by scroll up. |
| kcufl= | kr= | What is sent by the right arrow key |
| ked= | kS= | String sent by clear to end of screen. |
| smkx= | ks= | Turn keypad on |
| khts= | kT= | String sent by tab stop. |
| kctab= | kt= | String sent by clear tab |
| kcuul= | ku= | What is sent by the up arrow key |
| lf0= | l0= | The label on the 0th function key if not F0. |
| lf1= | l1= | The label on the 1st function key if not F1. |
| lf2= | l2= | The label on the 2nd function key if not F2. |
| lf3= | l3= | The label on the 3rd function key if not F3. |
| lf4= | l4= | The label on the 4th function key if not F4. |
| lf5= | l5= | The label on the 5th function key if not F5. |
| lf6= | l6= | The label on the 6th function key if not F6. |
| lf7= | l7= | The label on the 7th function key if not F7. |
| lf8= | l8= | The label on the 8th function key if not F8. |
| lf9= | l9= | The label on the 9th function key if not F9. |
| cub= | LE= | Move cursor left some number of columns. |
| rmln= | LF= | Turn softlabels off. |
| cubl= | le= | Moves the cursor left. |
| lh# | lh# | Height (rows) in each soft label. |
| lines# | li# | The number of lines the screen has. |
| ll= | ll= | Move the cursor to the lower left corner. |
| smln= | LO= | Turn soft labels on. |
| lw# | lw# | Width (columns) in each softlabel. |
| blink= | mb= | Turn on blinking attribute. |
| mgc= | MC= | Clear soft margins. |
| bold= | md= | Turn on bold attribute. |
| sgr0= | me= | Turn off all attributes. |
| dim= | mh= | Turn on dim attribute. |
| mir | mi | Boolean, terminal cursor movement commands work while in insert mode. |
| invis= | mk= | Make characters invisible (turn on blanking attribute). |
| smgl= | ML= | Set left soft margin. |
| smm= | mm= | Put terminal into meta mode. |
| rmm= | mo= | Take terminal out of meta mode. |
| prot= | mp= | Turn on protected attribute. |
| smgr | MR= | Set right soft margin. |
| rev= | mr= | Turn on reverse video attribute. |
| msgr | ms | Boolean, can move cursor in bold or underline mode. |
| cufl= | nd= | moves cursor to the right |
| nlab# | Nl# | The number of softlabels available. |
| nrrmc | | "smcup=" does not reverse "rmcup=" |
| nel= | nw= | Newline command |
| pfkey= | pk= | Program key 1 to treat string 2 as if typed by user. |
| pfloc= | pl= | Program key 1 to execute string 2 in local mode. |
| pln= | pn= | Program soft label 1 to show string 2. |
| pfx= | px= | Program key 1 to transmit string 2 to computer. |
| rs1= | r1= | reset string 1. |
| rs2= | r2= | reset string 2. |
| rs3= | r4= | reset string 3. |
| rmam | RA= | Turn off automatic margins. |
| rc= | rc= | Restore cursor position saved by "sc=". |
| rf= | rf= | Reset file containing long reset strings. |
| cuf= | RI= | Move the cursor right some number of columns. |
| rep= | rp= | Repeat the first character the number of times specified by the second character. |
| rs= | Reset string |
| rmxon= | RX= | Turn off XON/XOFF flow control |
| smam= | SA= | Turn on automatic margins. |
| sgr= | sa= | Set attributes of number given. |
| sc= | sc= | Save absolute cursor position. |
| rmso= | se= | End standout (bold) mode |
| indn= | SF= | Scroll forward some number of lines |
| ind= | sf= | Scroll forward one line |
| xmc# | sg# | When changing to standout mode, the number of additional spaces output. |
| smso= | so= | Begin standout (bold) mode |
| rin= | SR= | Scroll backwards some number of lines. |
| ri= | sr= | Scroll backwards one line. |
| hts= | st= | Set a tab stop in all rows, current column. |
| smxon= | SX= | Turn on XON/XOFF flow control |
| ht= | ta= | Move to next hardware tab stop. |
| use= | tc= | Read terminal capabilities from a similar terminal. |
| rmcup= | te= | End programs that use cursor motion. |
| smcup= | ti= | Initialization for programs that use cursor motion. |
| tsl= | ts= | To status, Send cursor to some column of the status line. |
| u6= | |
| u7= | |
| u8= | |
| u9= | |
| uc= | uc= | Underline the character at the cursor and move the cursor right. |
| rmul= | ue= | End underline mode |
| ug# | Number of spaces printed when change to underline mode. |
| ul | ul | Boolean, the terminal can underline even if it can't overstrike. |
| cuu= | UP= | Move cursor up some number of rows. |
| cuul= | up= | moves cursor to the left |
| smul= | us= | Begin underline mode |
| ut | |
| flash= | vb= | Flash the terminal screen (visual bell). |
| cnorm= | ve= | Make cursor normal. |
| civis= | vi= | Make cursor invisible. |
| cvvis= | vs= | Make cursor very obvious. |
| wsl# | ws# | Specify the width of the status line. |
| xoffc= | XF= | XOFF character |
| xonc= | XN= | XON character |
| xn | |
| xon | xo | Boolean, terminal performs XON/XOFF flow control. |
| | |
| | |
| | |