7-BIT ASCII CODE CURSOR CONTROL KEY CODES Octal Octal Octal Octal Cursor Key VT52 ANSI/ Cursor ANSI/ Curso r Code Char Code Char Code Char Coda Char (arrow) Mode Kay Mode Reset Key Mode Set VT100 PROGRAMMING 000 NUL 040 SP 100 140 Up ESC A ESC [ A ESCOA 001 SOH 041 101 A 141 Down ESC B ESC I B ESCOB REF ERENCE CARD 002 STX 042 102 B 142 b Right ESCC ESC[ C ESC OC 003 ETX 043 # 103 c 143 Left ESC n ESC [D ESC 0 D 004 EOT 044 $ 104 D 144 d 005 ENQ 045 % 105 145 ANSI COMPATIBLE MODE 006 ACK 046 & 106 146 f SPECIAL GRAPHICS CHARACTERS CURSOR MOVEMENT COMMANDS 007 BEL 047 · (apostrophe) 107 147 g G Octal Graphic with Graphic with Cursor up ESC[ Pn A BS 010 050 I 11 0 H 150 Code US or UK Set " Special Graphics" Set Cursor down ESC [ Pn 8 011 HT 051 111 151 I 137 Blank Cursor forward (right) ESC [ Pn C 012 LF 052 112 152 140 \ Di amond Cursor backward (left) ESC[ Pn D 013 VT 053 113 K 153 + 141 Checkerboard (error indicator) Direct curso r addressing ESC I PI ; Pc H or 014 FF 054 , (comma) 114 154 142 HT horizontal tab ESC [ 1'1 ; Pt f 015 CR 055 115 M 155 m 143 FF form feed Index ESC D 016 056 . (period) so 116 N 156 Next Line ESCE CR carriage 017 Sl 057 I 117 144 d return 0 157 0 Reverse index ESCM LF line 020 DLE 060 0 120 p 160 145 feed p Save cursor and attributes ESC7 f 021 DCl 061 121 Q 161 q 146 Restore cu rsor and attributes ESC B 022 DC2 062 2 122 A 162 147 g ± Plus/ minus 023 DC3 063 3 123 s 163 150 NL new line 024 DC4 064 4 124 T 164 151 VT vertical tab LINE SIZE (DOUBLE-HEIGHT AND DOUBLE-WIDTH) COMMANDS 025 NAK 065 5 125 u 165 152 .J Lower-right corner 026 SYN 066 6 126 v 166 153 , Upper-right corner Change this line to double-height top half ESC#3 027 ETB 067 7 127 w 167 w 154 r- Upper-left corner Change this line to double-height bottom half ESC# 4 030 CAN 070 8 130 X 170 155 m L Lower-left corner Change this line to single -width single-height ESC# S 031 EM 071 9 131 y 171 Change this line to double-width ESC# 6 156 + Crossing lines single -height 032 SUB 072 132 172 z 157 0 Horizontal line - Scan 1 033 ESC 073 133 173 CHARACTER ATTRIBUTES I 160 p Horizontal line - Scan 3 034 FS 074 134 174 < \ 161 q Horizontal line - Scan 5 ESC [ l's;l's;l's; .... l's m 035 GS 075 135 I 175 162 Horizontal line - Scan 7 Ps = 036 AS 076 > 136 II 176 0 or None All Attributes Off 037 us 077 I 137 177 DEL 163 Horizonta l line - Scan 9 1 Bold on 164 t- Left " T" 4 Underscore on 165 -t Right " T" 5 Blink on 166 .1. Bottom " T" 7 Reverse video on 167 w T Top " T" NOTE : The following con trol characters are generated differently from 170 Vertical Ba r ERASING previous DIGITAL terminals. 171 ..;; Less than or equal to From cursor to end of line ESC [ K or ESC I 0 K 172 ~ Greater than or equal to Previo us From beginning of line to cursor ESC [I K 173 1r Pi Code VT100 Terminal Entire line containing cursor ESC [ 2 K 174 ¢ Not equal to NUL CT A L - Spa ce bar CTAL -@ From cursor to end of screen ESC I J or ESC I 0 J AS CTRL - - CTRL - II 175 £ UK pound sign From beginning of screen to cursor ESC II J us CTRL - I CTRL -- 76 Centered dot Entire screen ESC [2 J

j PROG RAMMABLE LEOs REPORTS VT52 COMPATIBLE MODE ESCA ESC I Ps;Ps; ... Ps q Cursor Position Report Cursor Up Cursor Down ESC B ESC 16 n Ps ~ Invoked by 0 or None All LEO s Off Cursor Right ESCC Response is ESC I 1'1; p,. R 1 L 1 on Cursor Left ESC I) 2 L2 on Select Sp ecial Graph ics character set ESC F 3 L3 on Selec t AS CII character se t ESCG 4 L4 on ESCH Status Report Cursor to home Reve rse li ne feed ESC I Invo ked by ESC [ Sn CHAR A CTE R SETS (G O AND G1 DESIGNATORS) Erase to end of scree n ESCJ Response is ESC [ 0 n (termina l ok) Erase to end of line ESC K Character Set GO Desi gnator G1 Designator ESC [3 n (termina l not ok) Direct cursor ad dress ESCYic (see note 1) United Kingdom (UK) ESC ( A ESC ) A W hat Are You Identify ESCZ (se e note 2) United States (USASC II ) ESC ( B ESC I B Invo ked by ESC [ c or ESC l 0 c Enter alternate keypad mode ESC~ Sp ecial graphics cha racters ESC ( O ESC ) O ESC Response is ESC I ?I ; Ps C Exit al ternate keypad mode > and line drawing se t Enter ANSI mode ESC < Alternate character ROM ESC ( I ESC ) I Ps ~ 0 Base VT100o. no ptions Alternate ch arac ter ROM ESC ( 2 ESC ) 2 1 Processor option (STP) NOTE 1: Line and column numbers for direct cursor address are single speci al graphics characters 2 Advanced vi deo option (AVO ) cha racter codes w hose values are t he desired number plus 378 . 3 AVO and STP Li ne and column numbers s tart at 1 . 4 Graphics proce ssor option (GO) NOTE 2 : Res ponse to ESC Z is ESC / Z. SCROLLING REGION GO and STP ESC [ Pt; Pb r 6 GO and AVO 7 GO. ST P. and AVO AUXILIARY KEYPAD CODES Altern ately invoked by ESC Z (not re commended) . Response is the same. TAB STO PS VT52 VT52 ANSI ANSI Num eric Application Numeric A pplication Set tab at current column ESC H RESET Key M ode Mode M ode Mode ESC [ g or ESC [ 0 g Cl ear tab at cu rrent column ESC c Clear al l tabs ESCI3g 0 0 E C p 0 ESCOp 1 1 ESC?q ESCOq CONFIDENCE TESTS 2 2 ESC'! r 2 ESC Or MODES Fill Screen w ith ''Es ' ESC # S 3 3 ESC?s 3 ESC OS To Set To Reset Invo ke Testis) ESC 12; Ps y 4 4 ESC? t 4 ESCOt Sequence ESC? u ESCOu M ode Name Mode Sequence M ode Ps ~ 1 Power-up self test 5 5 5 6 6 ESC?• 6 ESCO• Line fee d/ new line New line ESC 120h Line feed ESC [20/ • (ROM chec ksum. RAM. NVR. 7 7 ESC?w 7 ESC Ow Cursor key mode Application ESC [?lh Cursor ESC [?/ • keyboard and AVO if installed) ESC?x ESC Ox ESC 1?2/ • 8 8 B ANSIIVT52 mode ANSI N/ A VT52 2 (Loop ba ck connector require d) Data Loop Back 9 9 ESC?y 9 ESCOY Col umn mode 132 Col ESC [?3h 80 Col ESC [?3 / • 4 (Loop ba ck connector required) ETA Modern Control Test ESC?m ESC Om Scrolling mode Sm ooth ESC [?4h Jump ESC [?4/ • ESC? I • ESCO/ • B Repea t selected testis) . (comma) . (comma) . (c omma) ESC [?Sh Normal ESC [?5/ • Screen mode Reverse . (pe riod) . (period) ESC? n . (period) ESC On ESC [ ?6 h ESC [?6/ • indefinitely Origin mode Relative Absolute ESC?M ESC OM (until failure or power off) ENTER Same as Same as ESC[?7h Off ESC [?7/ • Wraparound On RETURN RETURN ESC [?S h ESC [?8/ • Auto repeat On Off PF1 ESC P ESCP ESCOP ESCOP ESC[?9h ESC [?9/ • Interlace On Off PF2 ESCQ ESCQ ESCOQ ESCOQ Graph ic proc. option On ESC I Off ESC2 PF3 ESC R ESC R ESCO R ESC OR Keypad mod e Application ESC ~ Numeric ESC > PF4 ESCS ESCS ESC OS ESC OS

·The last character of the is a low ercase L ( 154e). • The last charac ter of the e sc ape se quence is a low ercase L ( 1 548 ).