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

VT100 ESC sequences

Control Codes

enter = '^m'; # Return
erase = '^?'; # DEL
down = '\E[B' | '\EOB'; # Down Arrow
right = '\E[C' | '\EOC'; # Right Arrow
up = '\E[A' | '\EOA'; # Up Arrow
left = '\E[D' | '\EOD' | '^h'; # Left Arrow or backspace
home = '\E[H' | '^a'; # Home or CTRL-a
nl = '\E[4~' | '^j'; # Select or Linefeed
insrt = '\E[2~' | '\EOR'; # Insert Here or PF3
delete = '\E[3~' | '\EOS'; # Remove or PF4
eeof = '\E[1~' | '\EOP'; # Find or PF1
tab = '^i'; # Tab
btab = '\E[5~'; # Prev Screen
clear = '\E[6~' | '\EOQ' | '^l'; # Next Screen or PF2 or CTRL-l
pfk1 = '\EOq' | '\E1'; # Numeric 1 or ESC 1
pfk2 = '\EOr' | '\E2'; # Numeric 2 or ESC 2
pfk3 = '\EOs' | '\E3'; # Numeric 3 or ESC 3
pfk4 = '\EOt' | '\E4'; # Numeric 4 or ESC 4
pfk5 = '\EOu' | '\E5'; # Numeric 5 or ESC 5
pfk6 = '\EOv' | '\E6'; # Numeric 6 or ESC 6
pfk7 = '\EOw' | '\E7'; # Numeric 7 or ESC 7
pfk8 = '\EOx' | '\E8'; # Numeric 8 or ESC 8
pfk9 = '\EOy' | '\E9'; # Numeric 9 or ESC 9
pfk10 = '\EOp' | '\E0'; # Numeric 0 or ESC 0
pfk11 = '\EOn' | '\E!'; # Numeric Period or ESC !
pfk12 = '\EOM' | '\E@'; # Enter or ESC @
pfk13 = '\E[17~' | '\E#'; # F6 or ESC #
pfk14 = '\E[18~' | '\E$'; # F7 or ESC $
pfk15 = '\E[19~' | '\E%'; # F8 or ESC %
pfk16 = '\E[20~' | '\E\^'; # F9 or ESC ^
pfk17 = '\E[21~' | '\E&'; # F10 or ESC &
pfk18 = '\E[23~' | '\E*'; # F11 or ESC *
pfk19 = '\E[24~' | '\E('; # F12 or ESC (
pfk20 = '\E[25~' | '\E)'; # F13 or ESC )
pfk21 = '\E[26~' | '\E-'; # F14 or ESC -
pfk22 = '\E[31~' | '\E='; # F17 or ESC =
pfk23 = '\E[32~' | '\E_'; # F18 or ESC _
pfk24 = '\E[33~' | '\E+'; # F19 or ESC +
pa1 = '\EOm' | '\Ea1'; # Numeric Minus or ESC a1
pa2 = '\EOl' | '\Ea2'; # Numeric Comma or ESC a2
pa3 = '\E[34~' | '\Ea3'; # F20 or ESC a3
escape = '^]'; # Telnet escape
help = '^e' | '\E[28~'; # On-line help
keymap = '^k'; # Put out the keymapping
option = '^o'; # Set options
lprt = '^p'; # Print screen (to a file)
fm = '^f'; # Set Field Mark
dup = '^d'; # Duplicate
eh_v = '\Ev'; # Highlighting according to currently valid state
eh_f = '\Ef'; # Highlighting as for field
eh_b = '\Eb'; # Blinking
eh_r = '\Er'; # Reverse video
eh_u = '\Eu'; # Underscore
ec_v = '\EV'; # Colour according to currently valid state
ec_f = '\EF'; # Colour as for field
ec_b = '\EB'; # Blue
ec_r = '\ER'; # Red
ec_p = '\EP'; # Pink
ec_g = '\EG'; # Green
ec_t = '\ET'; # Turquoise
ec_y = '\EY'; # Yellow
ec_n = '\EN'; # Neutral
extend = '^x'; # Switch to extended ASCII
normal = '^n'; # Switch to normal ASCII
mreset = '^g'; # Master reset
reshow = '^v';
reset = '^t';

ESC Sequences

Key SequenceMeaning
ESC(BSet to US ASCII character set
ESC(AUK National
ESC(0Graphic
ESC[MMove the cursor up in scrolling region.
ESC[nAMove the cursor up.
ESCD'LF'Move the cursor down in scrolling region.
ESC[nBMove the cursor down
ESC[nCMove the cursor right
ESC[nDMove the cursor left
ESCEMove cursor to start of next line
ESC[r;cHMove the cursor to row r, column c.
ESC7Save the cursor column position and character attributes
ESC8Restore the cursor column position and character attributes
ESC[0KErase from the cursor to the end of the line
ESC[1Kerase from the beginning of the line to the cursor.
ESC[2KErase the line
ESC[0JErase from the cursor to the end of the screen.
ESC[1Jerase from the bottom of the screen to the cursor
ESC[2JErase the screen
ESC[t;brDefines a scrolling region where the top line = t and the bottom line = b.
ESC[?6hSet cursor position 0,0 equal to the upper left corner of the scrolling region.
ESC[?6lSet cursor position 0,0 equal to upper left corner of the defined scrolling region.
ESC[0mNormal characters
ESC[1mBold characters
ESC[4mUnderline characters.
ESC[5mBlinking characters
ESC[7mreverse video characters
ESC#3Double height characters, top half.
ESC#4Double height characters, bottom
ESC#5Single width characters
ESC#6Double width characters
ESC[?3lSet terminal to 132 column mode
ESC[?3hSet terminal to 80 column mode
ESCHSet tab stop at current column position
ESC[gClear tab stop at current column.
ESC[3gClear all tab stops.