Previous Page | Next Page

  1. Introduction
  2. Abbreviated Boot
  3. The Boot Process
  4. Startup and Run Levels
  5. Initialization Scripts
  6. Runlevel Scripts
  7. Login Process
  8. Bash Shell
  9. Filesystems
  10. LILO, Kernel and Root Filesystem
  11. The Kernel
  12. Passwords, Users, Groups, and Quotas
  13. The Environment
  14. The /etc/sysconfig directory
  15. The /proc filesystem
  16. Process Control
  17. Devices
  18. Daemons Services
  19. Inetd and Network Services
  20. Programs and Libraries
  21. Security and PAM
  22. The printer services
  23. Mouse support with gpm
  24. Mail
  25. News
  26. UUCP
  27. LDAP
  28. NFS and RPC
  29. Samba, NetBIOS, WINS, nmbd
  30. Identd (auth)
  31. Telnet and FTP
  32. Apache web server
  33. DNS and named
  34. How X Works
  35. X Scripts
  36. Support for Text
  37. Keymapping for Programs
  38. Keycode Table
  39. Example Keymap File
  40. Terminfo Commands
  41. VT100 ESC sequences
  42. Kernel Revisited
  43. Configuration Files
  44. Credits

Linux Terminfo and Termcap Commands

Codes used to write unprintable characters

CodeMeaning
\Eescape
^Control
\nnewline
\rreturn
\ttab
\bbackspace

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.

TerminfoTermcap
CommandCommandDescription
kbeg=@1Describe beginning key
kcan=@2Describe cancel key
kclo=@3Describe close key
kcmd=@4Describe command key
kcpy=@5Describe copy key
kcrt=@6Describe create key
kend=@7Describe end key
kent=@8Describe enter/send key
kext=@9Describe exit key
kfnd=@0Describe find key
khelp=%1Describe help key
kmrk=%2Describe mark key
kmsg=%3Describe message key
kmov=%4Describe move key
knxt=%5Describe next-object key
kopn=%6Describe open key
kopt=%7Describe options key
kprv=%8Describe previous-object key
kprt=%9Describe print or copy key
krdo=%0Describe redo key
kref=&1Describe reference key
krfr=&2Describe refresh key
krpl=&3Describe replace key
krst=&4Describe restart key
kres=&5Describe resume key
ksav=&6Describe save key
kspd=&7Describe suspend key
kund=&8Describe undo key
kBEG=&9Describe shifted beginning key
kCAN=&0Describe shifted cancel key
kspd=&7Describe 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.
amamAuto margin wrap around
smacs=as=Start using alternate character set.
bel=bl=Ring the audio bell.
BL=
obsoletebs=Sets CTRL H (^H) to backspace for terminfo only.
cbt=bt=Moves the cursor to the previous tab stop
bwbwThe 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.
dadaBoolean, display retained lines above the screen.
dbdbBoolean, 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.
eoeoA space erases all characters at cursor even though terminal overstrikes.
eslokesBoolean, 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.
chtsHCThe 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
hshsBoolean, 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.
ininBoolean, 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
kf10k;=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.
mirmiBoolean, 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.
smgrMR=Set right soft margin.
rev=mr=Turn on reverse video attribute.
msgrmsBoolean, 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.
rmamRA=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.
ululBoolean, 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
xonxoBoolean, terminal performs XON/XOFF flow control.