[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference atlant::terminals

Title:Traditional Video Terminals and Monitors
Notice:See 3230 for Sun River information
Moderator:REGENT::LASKO
Created:Tue Mar 18 1986
Last Modified:Thu May 22 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3256
Total number of notes:14159

3244.0. "Escape Sequence Documentation" by MKTCRV::KMANNERINGS () Wed Jan 15 1997 10:06

T.RTitleUserPersonal
Name
DateLines
3244.1ATLANT::SCHMIDTSee http://atlant2.zko.dec.com/Wed Jan 15 1997 20:5810
3244.2REGENT::POWERSThu Jan 16 1997 09:2815
3244.3VT340 Programmer Reference DocumentationPCBUOA::BAYJJim, PortablesThu Jan 16 1997 15:4125
3244.4JAMIN::OSMANEric Osman, dtn 226-7122Fri Jan 17 1997 16:035
3244.5REGENT::LASKOTim - Printing Systems BusinessWed Jan 22 1997 16:1724
3244.6VT420 do you?MARVIN::CARLINIThu Jan 23 1997 02:218
3244.7PCBUOA::BAYJJim, PortablesThu Jan 23 1997 14:5012
3244.8setup details, escape sequences, compose sequencesJAMIN::OSMANEric Osman, dtn 226-7122Mon Jan 27 1997 13:321491
Here is a detailed list of escape sequences.  Perhaps your customer
would find this useful.  (IF YOU INTEND TO GIVE THIS TO CUSTOMERS, IT IS
YOUR RESPONSIBILITY TO MAKE SURE YOU ARE FOLLOWING DIGITAL GUIDELINES REGARDING
WHAT MAY BE GIVEN OUT)

Thanks.

/Eric  27-Jan-1997


From:	HANNAH::HEDBERG      "BILL HEDBERG, 508-467-9635, Terminal Support Eng"  9-MAR-1995 10:04:27.90
To:	OSMAN,ERICW
CC:	
Subj:	FYI: VT525 SetUp Summary

VT525 V2.1 Set-Up Factory Defaults

Set-Up Selection          Factory Default                  Host Control
----------------          ---------------                  ------------
Actions>
 Clear display ........................................... ED
 Clear communications .................................... 
 Reset this session ...................................... DECSTR,RIS
 Restore factory defaults ................................ 
 Clock ................................................... DECLTOD
 Calculator ..............................................
 Show character sets .....................................
 Banner message... ....................................... DECLBAN

Session>
 Select session ..........................................
 Session name... ......................................... DECSWT,DECSIN
 Pages per session... ... S1=4,S2=4 ...................... 
 Save settings for all ................................... 
 Restore settings for all ................................ 
 Copy settings from ...................................... 
 Update session ......... When available ................. DECUS

Display>
 Lines per screen ....... 24, 25 or 26 ................... DECSNLS
  [ ]Auto resize ......................................... DECARSM
 Lines per page ......... 24 lines x 04 pages ............ DECSLPP
  [ ] Review previous lines .............................. DECRPL
 Columns per page ....... 80 Columns ..................... DECCOLM
  [/]Clear on change ..................................... DECNCSM
 Status display ......... Local status ................... DECSSDT
 Scrolling mode ......... Jump ........................... DECSCLM,DECSSCLS
 Screen background ...... Dark ........................... DECSCNM
 Cursor display ......... Block .......................... DECSCUSR
  [/]Blink ............................................... 
  [/]Enable cursor........................................ DECTCEM
 Cursor coupling ......................................... 
  [/]Vertical coupling ................................... DECVCCM
  [/]Page coupling ....................................... DECPCCM
 Cursor direction ....... Left to right .................. DECRLM
 Copy direction ......... Left to right .................. DECRLCM
 Zero ................... 0 .............................. DECSZF
 [ ]Auto wrap ............................................ DECAWM
 [ ]New line mode ........................................ LNM
 [ ]Lock user preferences ................................ 
 [ ]Show control characters .............................. CRM
 CRT saver .............. 15 minutes ..................... DECCRTSM
  [/] Host wake-up ....................................... 
 Energy saver ........... 15 minutes ..................... DECEST
 [ ]Overscan (VT520 only)................................. DECOSCNM
 [/]Framed windows ....................................... DECFWM
 Screen alignment ........................................ DECALN

Set-Up Selection          Factory Default                  Host Control
----------------          ---------------                  ------------
Color>
 Assign colors... ........................................ DECAC
 Alternate text colors... ................................ DECATC
 Define colors... ........................................ DECRSTS
 Select color mode ...... ANSI SGR color ................. DECSTGLT,SGR
 ASCII color mode ....... Color ..........................
 Bold and blink style ... Foreground ..................... DECCBSM
 Erase color ............ Text background ................ DECECM
 Reverse and Blank attributes . Map the reverse color .... 
 [/]Intensity attributes ................................. 

Terminal type>
 Emulation mode ......... VT525 VT420 VT320 VT220 ........ DECTME
 Terminal ID to host .... VT525 .......................... DECTID
 VT default char set .... ISO Latin-1 .................... SCS
 PCTerm character set ... PC International (437) ......... DECPCTERM
 [ ]7-bit NRCS characters ................................ DECNRCM
 [/]Transmit 7-bit controls .............................. 

ASCII emulation>
 Data lines ............. 24 lines .......................
 Pages .................. 1 x Lines ......................
 Attribute .............. Char ...........................
 Write protect attributes>
  [ ]Blank ...............................................
  [ ]Underline ...........................................
  [ ]Reverse .............................................
  [ ]Blink ...............................................
  [/]Dim .................................................
 [ ]Page edit ............................................
 Received CR ............ CR .............................
 [ ]Recognize DEL ........................................
 [/]Enhance ..............................................
 [/]Autoscroll ...........................................
 [ ]Autopage .............................................
 [/]Send ACK .............................................
 [ ]Answerback mode ......................................
 [/]TVI page-flip ........................................
 [/]Font load ............................................
 Block mode ............. Conversation ...................
 Block end .............. US/CR ..........................

Set-Up Selection          Factory Default                  Host Control
----------------          ---------------                  ------------
Keyboard>
 VT Keyboard language ... North American ................. DECKBD
 PC Keyboard language ... North American ................. DECKBD
 Define key... ........................................... DECPFK,DECPAK
                                                           DECUDK,DECNUMLK,
                                                           DECCAPSLK,
                                                           DECKLHIM,DECLL
 Save key definitions .................................... 
 Recall key definitions .................................. 
 [ ]Lock key definitions ................................. DECPKA
 Caps lock function ..... Caps Lock ...................... DECSLCK
 Keyclick volume ........ Low ............................ DECSKCV
 Warning bell volume .... High ........................... DECSWBV
  [ ]Suppress repeated warnings .......................... 
 Margin bell volume ..... Off ............................ DECSMBV
 Keyboard encoding ...... Character (ASCII) .............. DECPCTERM
 Auto repeat ............ Fast (30/sec) .................. DECARM
 [ ]Data processing keys ................................. DECBUM
 [ ]Application cursor keys .............................. DECCKM
 [ ]Application keypad mode .............................. DECPAM,DECKPNM
 [ ]Map PC keyboard to VT ................................ 
 [ ]Ignore missing keyboard .............................. 

Communication>
 Port select ............ S1=comm1,S2=comm2,print=none ... DECSCP
 Word size .............. 8 bits ......................... DECSPP
 Parity ................. None ........................... DECSPP
 Stop bits .............. 1 bit .......................... DECSPP
 Transmit speed ......... 9600 ........................... DECSCS
 Receive speed .......... Transmit speed ................. DECSCS
 Transmit flow control .. XON/XOFF ....................... DECSFC
 Receive flow control ... XON/XOFF or XPC ................ DECSFC
 Flow control threshold . Low (64) .......................
 Transmit rate limit .... 150 cps ........................ DECXRLM
 Fkey rate limit ........ 150 cps ........................ DECSTRL
 [/]Ignore Null character ................................ DECNULM
 [ ]Local echo ........................................... SRM
 [ ]Half duplex .......................................... DECHDPXM
 [/]Auto answerback ...................................... 
    Answerback message.................................... DECLANS
 [ ]Answerback concealed ................................. DECCANSM

Set-Up Selection          Factory Default                  Host Control
----------------          ---------------                  ------------
Modem>
 [ ]Enable modem control ................................. DECMCM
 Disconnect delay ....... 2 seconds ...................... DECSDDT
 Modem high speed ....... Ignore .........................
 Modem low speed ........ Ignore .........................

Printer>
 Port select ............ S1=comm1,S2=comm2,print=none ... DECSCP
 Print mode ............. Normal ......................... MC
 Printer type ........... DEC ANSI ....................... DECSPRTT,DECSDPT
 DEC/ISO char sets ...... National only .................. DECSDPT
 PC character sets ...... PC International (437) ......... DECSPPCS
  [ ]Same as receive ..................................... 
 Print extent ........... Full page ...................... DECPEX
 Print terminator ....... None ........................... DECPFF
 Serial print speed ..... 4800 ........................... DECSCS
 [ ]2-way communication .................................. MC
 Transmit flow control .. XON/XOFF ....................... DECSFC
 Receive flow control ... XON/XOFF ....................... DECSFC
 Word size .............. 8 bits ......................... DECSPP
 Parity ................. None ........................... DECSPP
 Stop bits .............. 1 bit .......................... DECSPP

Tabs...................................................... DECST8C,HTS

Set-Up language ......... English ........................ DECSSL
 [/]On-line ..............................................
 Save settings ...........................................
 Restore settings ........................................
 Exit Set-Up .............................................

From:	HANNAH::HEDBERG      "BILL HEDBERG, 508-467-9635, Terminal Support Eng"  9-MAR-1995 10:10:22.11
To:	OSMAN,ERICW
CC:	
Subj:	FYI: VT500 Control Seq List

Hi,

	I constructed the following list of ANSI control sequences
	to help me find related functions.

	Example (VMS):

	$ SEARCH VT5SEQS.TXT print

	or

	$ SEARCH VT5SEQS.TXT "cursor back"

	I also have control sequence lists for VT420, WY160, WY55.
	They were constructed by going through the programmer's ref
	and writing each sequence down.  They are not guaranteed to
	be all inclusive.

	Regards and let me know if I can be of further help, - Bill

VT510 Control Sequences

CBT     CSI Pn Z        Cursor Backward Tabulation
CHA     CSI Pn G        Cursor Horizontal Absolute
CHT     CSI Pn I        Cursor Horizontal Forward Tabulation
CNL     CSI Pn E        Cursor Next Line
CPL     CSI Pn F        Cursor Previous Line
CPR     CSI 6 n         Cursor Position Report-Request
CPR     CSI Pl;Pc n     Cursor Position Report
CRM     CSI 3 h         Show Control Character Mode
CUB     CSI Pn D        Cursor Backward
CUD     CSI Pn B        Cursor Down
CUF     CSI Pn C        Cursor Forward
CUP     CSI Pl;Pc H     Cursor Position
CUU     CSI Pn A        Cursor Up
DA1     CSI c           Primary Device Attributes
DA2     CSI > c         Secondary Device Attributes
DA3     CSI = c         Tertiary Device Attributes
DCH     CSI Pn p        Delete Character
DDD1    ESC ) 1         Set DECRLM, DECHEBM, DECHEM
DDD2    ESC ) B         Set DECRLM, designate ASCII in G1
DDD3    ESC ( 1         Designate ASCII in G0
decAAM  CSI ? 100 h     Set Auto Answerback Mode
decALN  ESC # 8         Screen Alignment Pattern
decANM  CSI ? 2 l       Set VT52 Mode
        ESC A           VT52 Cursor up
        ESC B           VT52 Cursor down
        ESC C           VT52 Cursor right
        ESC D           VT52 Cursor left
        ESC F           VT52 Enter graphics mode
        ESC G           VT52 Exit graphics mode
        ESC H           VT52 Cursor to home position
        ESC I           VT52 Reverse line feed
        ESC J           VT52 Erase from cursor to end of screen
        ESC K           VT52 Erase from cursor to end of line
        ESC Y Pn        VT52 Move cursor to column Pn
        ESC Z           VT52 Identify-Request
        ESC /Z          VT52 Identify-Report
        ESC =           VT52 Enter alternate keypad mode
        ESC >           VT52 Exit alternate keypad mode
        ESC <           VT52 Exit VT52 mode, enter VT100 mode
        ESC ^           VT52 Enter autoprint mode
        ESC _           VT52 Exit autoprint mode
        ESC W           VT52 Enter printer controller mode
        ESC X           VT52 Exit printer controller mode
        ESC ]           VT52 Print screen
        ESC V           VT52 Print the line with the cursor
decARM  CSI ? 8 h       Set Autorepeat mode
decARSM CSI ? 98 h      Set Auto Resize Mode
decAUPSS CSI Pn ! u Dscs ST     Assigning User-Preferred Supplemental Sets
decAWM  CSI ? 7 h       Set Autowrap Mode
decBI   ESC 6           Back Index
decBKM  CSI ? 67 h      Set Backarrow Key Mode
decANSM CSI ? 101 h     Conceal Answerback Message Mode
decCAPSLK CSI ? 109 h   Set Caps Lock Mode
decCARA CSI Pt;Pl;Pb;Pr $ r     Change Attributes in Rectangular Area
decCIR  DCS 1 $ u D...D ST      Cursor Information Report
decCKD  DCS " z D...D ST        Copy Key Default
decCKM  CSI ? 1 h       Set Cursor Application Keys Mode
decCKSR CSI ? 63;Pid n          Memory Checksum Report-Request
decCKSR CSI Pid ! ~ D...D ST    Memory Checksum Report
decCOLM CSI ? 3 h       Set 80 Columns per Page
decCOLM CSI ? 3 l       Set 132 Columns per Page
decCRA  CSI Pts;Pls;Pbs;Prs;Pps $ v     Copy Rectangular Area
decCRTSM CSI 97 h       Set CRT Saver Mode
decDC   CSI Pn ' ~      Delete Column
decDHL  ESC # 3         Double-Width, Double-Height Line
decDLD  DCS Pfn;Pcn;Pe;...ST    Dynamically Redefinable Character Sets Ext
decDMAC DCS Pid;Pdt;Pen ! z D...D ST    Define Macro
decEKBD APC : ppp mm ST Extended Keyboard Report
decELF  Pf1;Pc1;...Pfn;Pcn + q  Enable Local Functions
decERA  CSI Pt;Pl;Pb;Pr $ z     Erase Rectangular Area
decESKM CSI ? 104 h     Enable Secondary Keyboard Language Mode
decFI   ESC 9           Forward Index
decFNK  CSI Ps1;Ps2 ~   Function Key
decFRA  CSI Pch;Pt;Pl;Pb;Pr $ x Fill Rectangular Area
decHDPXM CSI ? 103 h    Set Half-Duplex Mode
decHEM  CSI ? 36 h      Set Hebrew Encoding Mode
decHEBM CSI ? 35 h      Set Hebrew/North American Keyboard Mapping
decIC   CSI Pn ' }      Insert Column
decID   ESC Z           Terminal Identification Request (deprecated)
decINVM CSI Pid ' z     Invoke Macro
decIPEM CSI ? 58 h      Enter IBM ProPrinter Mode
decKBD  CSI Ps1;Ps2 SP }        Keyboard Language Selection
decKBUM CSI ? 68 h      Set Typewriter or Data Processing Keys
decKLHIM CSI ? 1110 h   Set Keyboard LED's Host Indicator Mode
decKPAM ESC =           Set Keypad Application Mode
decKPM  CSI 81 h        Set Key Position Mode
decKPNM ESC >           Set Keypad Numeric Mode
decLANS DCS Ps v D...D ST       Load Answerback Message
decLBAN DCS Ps r D...D ST       Load Banner Message
decLFKC CSI Pk1;Pf1... * }      Local Function Key Control
decLL   CSI Ps q        Load LEDs
decLRMM CSI ? 69 h      Set Left Right Margin Mode
decLTOD CSI Ps1;Ps2 , p Load Time of Day
decMCM  CSI ? 99 h      Set Modem Control Mode
decMSR  CSI Pn * {      Macro Space Report
decMAKB CSI ? 57 h      Set Greek/North American Keyboard Mapping
decNCSM CSI ? 95 h      Set No Clearing Screen On Column Change
decNKM  CSI ? 66 h      Set Numeric Keypad Mode
decNRCM CSI ? 42 h      Set National Replacement Character Set Mode
decNULM CSI ? 102 h     Set Ignore NUL Character Mode
decNUMLK CSI ? 108 h    Set Num Lock Mode
decOM   CSI ? 6 h       Set Origin Mode
decOSCNM CSI ? 106 h    Set Overscan Mode
decPAK  DCS " y D...D ST        Program Alphanumeric Key
decPCCM CSI ? 64 h      Set Page Cursor-Coupling Mode
decPCTERM CSI ? Ps1;Ps2 r       Enter PCTerm or Scancode Mode
decPEX  CSI ? 19 h      Set Print Extent Mode-Print Page
decPEX  CSI ? 19 l      Set Print Extent Mode-Print Scroll Region
decPFF  CSI ? 18 h      Set Print Form Feed Mode
decPFK  DCS " x D...D ST        Program Function Key
decPKA  CSI Ps + z      Program Key Action
decPKFMR CSI Ps1;Ps2 + y        Program Key Free Memory Report
decRARA CSI Pt;Pl;Pb;Pr... $ t  Reverse Attributes in Rectangular Area
decRC   ESC 8           Restore Cursor
decRLCM CSI ? 96 h      Set Right to Left Copy
decRLM  CSI ? 34 h      Set Cursor Right to Left Mode
decRPAK DCS " ~ D...D ST        Report All Modifiers/Alphanumeric Key State
decRPDE CSI Ph;Pw;Pml;Pmt;Pmp; " w      Report Displayed Extent
decRPFK DCS " } D...D ST        Report Function Key Definition
decRPKT CSI Ps1;Ps2 , v Report Key Type
decRPM  CSI Pa;Ps $ y   Report Mode-ANSI
decRPM  CSI ? Pd;Ps $ y Report Mode-DEC Private
decRPSS DCS Ps $ r D...D ST     Report Selection Setting
decRPTUI DCS ! | D...d ST       Report Terminal ID
decRQCRA CSI Pid;Pp;Pt;Pl;Pb;Pr * y     Request Checksum of Rectangular Area
decRQDE CSI " v         Request Displayed Extent
decRQKD CSI Ps;Ps2 , w  Request Key Definition
decRQKT CSI Ps , u      Key Type Inquiry-Report
decRQM  CSI Pa $ p      Request Mode-ANSI
decRQM  CSI ? Pd $ p    Request Mode-DEC Private
decRQPKFM CSI + x       Program Key Free Memory Inquiry-Request decPKFMR
decRQPSR CSI Ps $ w     Request Presentation State Report
decRQSS DCS $ q D...D ST        Request Selection or Setting
decRQTSR CSI Ps $ u     Request Terminal State Report
decRQUPSS CSI & u       User-Preferred Supplemental Set-Request
decRSPS DCS Ps $ t D...D ST     Restore Presentation State
decRSTS DCS Ps $ p D...D ST    Restore Terminal State
decSACE CSI Ps * x      Select Attribute Change Extent
decSASD CSI Ps $ }      Select Active Status Display
decSC   ESC 7           Save Cursor
decSCA  CSI Ps " q      Select Character Protection Attribute
decSCL  61 " p          Select Operating Level-VT100
decSCL  62 " p          Select Operating Level-VT400, 8-bit controls
decSCL  62;0 " p        Select Operating Level-VT400, 8-bit controls
decSCL  62;1 " p        Select Operating Level-VT400, 7-bit controls
decSCL  62;2 " p        Select Operating Level-VT400, 8-bit controls
decSCLM ? 4 h           Set Scrolling Mode-Smooth
decSCNM ? 5 h           Set Screen Mode-Light Screen Background
decSCP  CSI Ps1;Ps2 * u Select Communications Port
decSCPP CSI $ |         Set 80 Columns per Page
decSCPP CSI 0 $ |       Set 80 Columns per Page
decSCPP CSI 80 $ |      Set 80 Columns per Page
decSCPP CSI 132 $ |     Set 132 Columns per Page
decSCS  CSI Ps1;Ps2 * r Select Communications Speed
decSCUSR CSI Ps SP q    Set Cursor Style
decSDDT CSI Ps $ q      Select Disconnect Delay Time
decSDPT CSI Ps ) p      Select Digital Printed Data Type
decSED  CSI ? Ps J      Selective Erase in Display
decSEL  CSI ? Ps K      Selective Erase in Line
decSERA CSI Pt;Pl;Pb;Pr $ {     Selective Erase Rectangular Area
decSFC  CSI Ps1;Ps2;Ps3;Ps4 * s Select Flow Control
decSKCV CSI Ps SP r     Set Key Click Volume
decSLCK CSI Ps SP v     Set Lock Key Style
decSLPP CSI Pn t        Set Lines Per Page
decSLRM CSI Pl;Pr s     Set Left and Right Margins
decSMBV CSI Ps SP u     Set Margin Bill Volume
decSMKR CSI Pm1;Pf1... + r      Select Modifier Key Reporting
decSNLS CSI Pn * |      Set Lines Per Screen
decSPP  CSI Ps1;Ps2;Ps3;Ps4 + w Set Port Parameter (bits, parity, stop bits)
decSPPCS CSI Pn * p     Select ProPrinter Character Set
decSPRTT CSI Ps $ s     Select Printer Type
decSR   CSI Pr + p      Secure Reset
decSRC  CSI Pr * q      Secure Reset Confirmation
decSRFR CSI Ps " t      Select Refresh Rate Selection
decSSCLS CSI Ps SP p    Set Scroll Speed
decSSDT CSI Ps $ ~      Select Status Display Type
decSSL  CSI Ps p        Select Set-Up Language
decST8C CSI ? 5 W       Set Tab at Every 8 Columns
decSTBM CSI Pt;Pb r     Set Top and Bottom scroll Margins
decSTR  CSI ! p         Soft Terminal Reset
decSTRL CSI Ps1;Ps2 " u Set Transmit Rate Limit
decSTUI DCS ! { D...D ST        Set Terminal Unit ID
decSWBV CSI Ps SP t     Set Warning Bell Volume
decTABSR DCS 2 $ u D...D ST     Tab Stop Report. Request=DECRQPSR
decTCEM CSI ? 25 h      Set Text Cursor Enable Mode
decTID  CSI Ps , q      Select Terminal ID
decTME  CSI Ps SP ~     Terminal Mode Emulation
decTSR  CSI Ps $ u      Terminal State Report. Request=DECRQTSR
decTST  CSI 4;Ps... y   Invoke Confidence Test
decUDK  DCS Ps1;Ps2;Ps3 | D...D ST      User Defined Keys
decVCCM CSI ? 61 h      Set Vertical Cursor-Coupling Mode
decXCPR CSI ? 67        Extended Cursor Position-Request
decXCPR CSI Pl;Pc;Pp R  Extended Cursor Position-Report
decXRLM CSI ? 73 h      Transmit Rate Limiting
DL      CSI Pn M        Delete Line
DSR     CSI Ps n        Device Status Report-ANSI
DSR     CSI ? Ps n      Device Status Report-DEC Private
DSR     CSI 6 n         Cursor Position Report-Request
DSR     CSI Pl;Pc R     Cursor Position Report
DSR     CSI ? 75 n      Data Integrity Report-Request
DSR     CSI ? 70 n      Data Integrity Report
DSR     CSI ? 71 n      Data Integrity Report
DSR     CSI ? 73 n      Data Integrity Report
DSR     CSI ? 6 n       Extended Cursor Position Report-Request
DSR     CSI Pl;Pc;Pp R  Extended Cursor Position Report
DSR     CSI ? 26 n      Keyboard Report-Request
DSR     CSI ? 27;Pn;Pst;Ptyp n  Keyboard Report
DSR     CSI ? 62 n      Macro Space Report-Request
DSR     CSI Pn * {      Macro Space Report
DSR     CSI ? 63;Pid n  Memory Checksum Request
DSR     DCS Pid ! ~ D...D ST    Memory Checksum Report
DSR     CSI 5 n         Operating Status Request
DSR     CSI 0 n         Operating Status Report
DSR     CSI 3 n         Operating Status Report
DSR     CSI ? 15 n      Printer Port Request
DSR     CSI ? 13 n      Printer Port Report
DSR     CSI ? 10 n      Printer Port Report
DSR     CSI ? 11 n      Printer Port Report
DSR     CSI ? 18 n      Printer Port Report
DSR     CSI ? 19 n      Printer Port Report
DSR     CSI ? 25 n      User Defined Keys Locked Request
DSR     CSI ? 20 n      User Defined Keys Unlocked Report
DSR     CSI ? 21 n      User Defined Keys Locked Report
ECH     CSI Pn X        Erase Character
ED      CSI Ps J        Erase in Display
EL      CSI Ps K        Erase in Line
ERC02   ESC 6           Select Character Set 2 (B)-ProPrinter
ERC0ACS ESC \ n1...     Select All Characters Set-ProPrinter
EREBD   ESC E           Enable Shadow Bold-ProPrinter
ERDBD   ESC F           Disable Shadow Bold-ProPrinter
EREUL   ESC - Pn        Enable Underline-ProPrinter
ERDUL   ESC - Pn        Disable Underline-ProPrinter
EREDHW  ESC [ @ n1...   Set Double-Height and Width Characters-ProPrinter
ERSCS   ESC [ T n1...   Select Code Page-ProPrinter
ERSSACS ESC ^ n         Print Single Character from All Char Set-ProPrinter
HPA     CSI Pn `        Horizontal Position Absolute
HPR     CSI Pn a        Horizontal Position Relative
HT      HT              Horizontal Tab (ASCII Tab Chr 0/9)
HTS     HTS             Horizontal Tab Set (ASCII Tab Chr 8/8)
HTS     ESC H           Horizontal Tab Set
HVP     CSI f           Set Horizontal and Vertical Position-Home
HVP     CSI Pl;Pc f     Set Horizontal and Vertical Position-Line/Col
ICH     CSI Pn @        Insert Character
IL      CSI Pn L        Insert Line
IND     ESC D           Index
IRM     CSI 4 h         Set Insert Mode
IRM     CSI 4 l         Set Replace Mode
KAM     CSI 2 h         Set Keyboard Action Mode-Lock Keyboard
KAM     CSI 2 l         Set Keyboard Action Mode-Unlock Keyboard
LNM     CSI 20 h        Set New Line Mode-Return=CR/LF, effects LF, FF, VT
LNM     CSI 20 l        Set Line Feed Mode-Return=CR, effects LF, FF, VT
LS0     SI              Locking Shift-Map G0 to GL
LS1     SO              Locking Shift-Map G1 to GR
LS1R    ESC ~           Locking Shift-Map G2 to GR
LS2     ESC n           Locking Shift-Map G2 to GL
LS2R    ESC }           Locking Shift-Map G2 to GR
LS3     ESC o           Locking Shift-Map G3 to GL
LS3R    ESC |           Locking Shift-Map G3 to GR
MC      CSI Pn i        Media Copy-ANSI
MC      CSI ? Ps i      Media Copy-DEC Private
NEL     ESC E           Next Line
NP      CSI Pn U        Next Page
PP      CSI Pn V        Preceding Page
PPA     CSI Pn SP P     Page Position Absolute
PPB     CSI Pn SP R     Page Position Backward
PPR     CSI Pn SP Q     Page Position Relative
RIS     ESC c           Reset to Initial State
RM      CSI ? Pd;... l  Reset Mode
ROCS    ESC % @         Return from Other Coding System-ProPrinter
S7C1T   ESC SP F        Send 7-bit C1 Control Characters to Host
S8C1T   ESC SP G        Send 8-bit C1 Control Characters to Host
SCODFK  ESC Q Fn str    Define Function Key-SCO Console Mode
SCODPCC ESC xx          Display PC Characters-SCO Console Mode

From:	DECWIN::MESSENGER "Bob Messenger ZKO3-2/S33 381-1317  15-Dec-1992 1638" 15-DEC-1992 16:39:50.17
To:	HANNAH::OSMAN
CC:	MESSENGER
Subj:	Escape sequence crib

	ASCII control functions, by code, with VT52, 4010/4014, compose seqs
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
						Bob Messenger, 20-Jan-1989
						       updated 19-Mar-1990
C0 control characters of special interest

	^N		SO		Shift out (LS1) maps G1 into GL
	^O		SI		Shift in (LS0) maps G0 into GL

C1 control characters

	ESC D		IND		Index
	ESC E		NEL		Next line
	ESC F		SSA		Start selected area
	ESC G		ESA		End selected area
	ESC H		HTS		Horizontal tab set
	ESC M		RI		Reverse index  n
	ESC N		SS2		Single shift 2
	ESC O		SS3		Single shift 3
	ESC P		DCS		Device control string
	ESC S		STS		Set transmit state
	ESC V		SPA		Start protected area
	ESC W		EPA		End protected area
	ESC [		CSI		Control string introducer
	ESC \		ST		String terminator
	ESC ]		OSC		Operating system command
	ESC ^		PM		Privacy message
	ESC _		APC		Application program command

Escape sequences with no intermediates

	ESC S		STS		set transmit state
	ESC Z		DECID		terminal identification (obsolete)
					same response as primary DA, CSI c
	ESC 5		DECXMIT		transmit (asks for block of charaters)
	ESC 7		DECSC		save cursor
	ESC 8		DECRC		restore cursor
	ESC =		DECKPAM		keypad application mode
	ESC >		DECKPNM		keypad numeric mode
	ESC c		RIS		hard terminal reset

	ESC ~		LS1R		Map G1 into GR
	ESC n		LS2		Map G2 into GL
	ESC }		LS2R		Map G2 into GR
	ESC o		LS3		Map G3 into GL
	ESC |		LS3R		Map G3 into GR

Escape sequences with one or two intermediates

	ESC sp F	S7C1T		Select 7-bit C1 control characters
	ESC sp G	S8C1T		Select 8-bit C1 control characters
	ESC sp L			ANSI conformance level 1
	ESC sp M			ANSI conformance level 2
	ESC sp N			ANSI conformance level 3

	ESC # 3		DECDHL		double height line, top half
	ESC # 4		DECDHL		double height line, bottom half
	ESC # 5		DECSWL		single width, single height line
	ESC # 6		DECDWL		double width, single height line

	ESC ( final	SCS		G0 (94 character set)
	ESC ) final			G1 ("")
	ESC * final			G2 ("")
	ESC + final			G3 ("")

	ESC - final			G1 (96 character set)
	ESC . final			G2 (96 character set)
	ESC / final			G3 (96 character set)

	ESC int B			ASCII
	ESC int % 5			DEC Supplemental
	ESC int A			ISO Latin 1 (96 characters)
	ESC int <			User preferred supplemental
	ESC int 0			DEC special graphic (line drawing)
	ESC int >			DEC technical
	ESC int A			British NRC
	ESC int 4			Dutch NRC
	ESC int 5			Finnish NRC (preferred form)
	ESC int C			Finnish NRC
	ESC int R			French NRC
	ESC int 9			French Canadian NRC (preferred form)
	ESC int Q			French Canadian NRC
	ESC int K			German NRC
	ESC int Y			Italian NRC
	ESC int `			Norwegian/Danish NRC (preferred form)
	ESC int E			Norwegian/Danish NRC
	ESC int 6			Norwegian/Danish NRC
	ESC int % 6			Portuguese NRC
	ESC int Z			Spanish NRC
	ESC int 7			Swedish NRC (preferred form)
	ESC int H			Swedish NRC
	ESC int =			Swiss NRC

Control sequences with no intermediates

	CSI <pn> @	ICH		insert character
	CSI <pn> A	CUU		cursor up
	CSI <pn> B	CUD		cursor down
	CSI <pn> C	CUF		cursor forward
	CSI <pn> D	CUB		cursor backward
	CSI <pn...> H	CUP		cursor position (line, column)
	CSI <ps> J	ED		erase in display
					0	from cursor to end of display
					1	from beginning to cursor
					2	the complete display

	CSI <ps> K	EL		erase in line
					0	from cursor to end of line
					1	from beginning to cursor
					2	the complete line

	CSI <pn> L	IL		insert line
	CSI <pn> M	DL		delete line
	CSI <pn> P	DCH		delete character
	CSI <pl>;<pc>R	CPR		cursor position report (response to
					CSI 6 n or CSI ? 6 n)
	CSI <pn> S	SU		pan down
	CSI <pn> T	SD		pan up
	CSI <pn> U	NP		next page (homes cursor)
	CSI <pn> V	PP		previous page (homes cursor)
	CSI <pn> X	ECH		erase character
	CSI c		DA		primary DA request (response is
					CSI ? <ps...> c)
	CSI 0 c		DA		primary DA request
	CSI <pn...> f	HVP		horizontal and vertical position
	CSI <ps> g	TBC		tab clear (see also C1 control HTS)
					0	clear tab stop at cursor
					3	clear all tab stops

	CSI <ps...> h	SM		set mode
					1	GATM - guarded area xmit mode
					2	KAM - keyboard action (locked)
					3	CRM - ignored (control rep)
					4	IRM - insert mode
					6	ERM - erasure mode (all)
					10	HEM - ignored (horiz editing)
					12	SRM - send receive mode (line)
					15	MATM - multiple area xmit mode
					16	TTM - transmit termination
						      mode (scroll region)
					17	SATM - seleced area xmit mode
					20	NLM - new line mode (new line)

	CSI <ps> i	MC		media copy
					0	print page
					4	printer controller mode off
					5	printer controller mode on

	CSI <ps...> l	RM		reset mode
					1	GATM - guarded area xmit mode
					2	KAM - keyboard action (unlocked)
					3	CRM - ignored (control rep)
					4	IRM - replace mode
					6	ERM - erasure mode (unprotected)
					10	HEM - ignored (horiz editing)
					12	SRM - send receive mode (local)
					15	MTM - multiple area xmit mode
					16	TTM - transmit termination
						      mode (partial page)
					17	SATM - selected area xmit mode
					20	NLM - new line mode (line feed)

	CSI <ps...> m	SGR		select graphics rendition
					0	all attributes off
					1	bold
					4	underline
					5	blinking
					7	negative image

					8	invisible
					22	bold off
					24	underline off
					25	blinking off
					27	negative image off
					28	invisible off

	CSI <ps> n	DSR		device status report
					0	(response to 5) - good condition
					3	(response to 5) - malfunction
					5	DSR - request operating status
					6	CRP - request cursor position
						response is CSI <pl>;<pc> R
	CSI <pn1> ; <pn2> r
			DECSTBM		set top and bottom margins
	CSI <pn> t	DECSLPP		set lines per page
	CSI <ps> |	DECTTC		set transmit termination character
					0	no character (DECTTC disabled)
					1	FF	form feed
					2	ETX	end of text
					3	EOT	end of transmission
					4	CR	carriage return
					5	DC3	XOFF

	CSI <ps...> }	DECPRO		protected fields attributes
					0	on	normal
					1	on	bold
					4	on	underlined
					5	on	blinking
					7	on	negative image
					8	on	invisible
					22	off	bold
					24	off	underlined
					25	off	blinking
					27	off	negative
					28	off	invisible
					254	off	all characters

Control sequences with one intermediate

	CSI <pn> sp @	SL		pan right
	CSI <pn> sp A	SR		pan left
	CSI <pn> sp P	PPA		page position absolute
	CSI <pn> sp Q	PPR		page position relative
	CSI <pn> sp R	PPB		page position backward
	CSI ! p		DECSTR		soft terminal reset
	CSI <ps1>;<ps2> " p
			DECSCL		Select compatibility level
					<ps1>
					61 - VT100 mode
					62 - VT300 mode
					63 - VT300 mode
					<ps2>
					0 - 8 bit controls
					1 - 7 bit controls
					2 - 8 bit controls

	CSI " v		DECRQDE		request displayed extent
	CSI <pn...> " w	DECRPDE		report displayed extent

	CSI <pa> $ p	DECRQM		request mode
					1	GATM	guarded area transfer
					2	KAM	keyboard action
					3	CRM	control representation
					4	IRM	insert/replace mode
					6	ERM	erasure
					10	HEM	horizontal editing
					12	SRM	send/receive
					15	MATM	multiple area transfer
					16	TTM	transmit termination
					17	SATM	selected area transfer
					18	LNM	line feed/new line

	CSI <ps> $ u	DECRQTSR	request terminal state report
					0	(ignored)
					1	terminal state report DECTSR
					2	color table report DECCTR
						optional second parameter:
						0 - HLS
						1 - HLS
						2 - RGB

	CSI <ps> $ w	DECRQPSR	request presentation state report
					0	(ignored)
					1	cursor information (DECCIR)
					2	tab stop report (DECTABSR)

	CSI <pa> ; <ps> $ y
			DECRPM		report mode
					see DECRQM for <pa> values:
					CSI <pa> $ p
					<ps> indicates setting of mode:
					0	mode not recognized
					1	set
					2	reset
					3	permanently set
					4	permanently reset

	CSI <pn> $ |	DECSCPP		set columns per page
	CSI <ps> $ }	DECSASD		select active status display
					0	main display
					1	status line

	CSI <ps> $ ~	DECSSDT		select status line type
					0	no status line
					1	indicator status line
					2	host-writable status line

	CSI <pt> ; <pl> ; <pb> ; <pr > ' w
			DECEFR		enable filter rectangle
					<pt>	top boundary
					<pl>	left boundary
					<pb>	bottom boundary
					<pr>	right boundary

	CSI <ps> ; <pu> ' z
			DECELR		enable locator reports
					<ps> values
					0	locator disabled (default)
					1	locator reports enabled
					2	one shot

					<pu> values
					0	default to character cells
					1	device physical pixels
					2	character cells
					3	ReGIS user coordinates

	CSI <ps...> ' {	DECSLE		select locator events
					<ps...> values
					0	respond only to explicit
						requests (default, also cancels
						filter rectangle)
					1	report button down transitions
					2	don't report button down
					3	report button up
					4	don't report button up

	CSI <ps> ' |	DECRQLP		request locator position
					<ps> values
					0	default to 1
					1	transmit single DECLRP report
					others are ignored

	CSI & u		DECRQUPSS	request UPSS. response is DECAUPSS
					DCS <ps> ! u <data> ST

	CSI <pe> ; <pb> ; <pr> ; <pc> ; <pp> & w
			DECLRP		locator report
					<pe>	event code
						0	request (unavailable)
						1	request
						2	left button down
						3	left button up
						4	middle button down
						5	middle button up
						6	right button down
						7	right button up
						8	fourth button down
						9	fourth button up
						10	outside filter rectangle
					<pb>	button code
						0	no buttons down
						1	right
						2	middle
						4	left
						8	fourth
					<pr>	row coordinate
					<pc>	column coordinate
					<pp>	page coordinate (default is 1)

	CSI & x				enable session command

	CSI > c		DA		secondary device attributes request
	CSI > 0 c	DA		""
	CSI > <pp> ; <pv> ; <pc> c
			DA		secondary devide attributes response
					<pp>	device identification code
					18	VT330
					19	VT340
					28	DECterm
					29	VWS emulator

					<pv>	firmware version level
					7	X0.7
					10	V1.0

					<pc>	ROM cartidge registration number
					
DEC private control sequences with no intermediates

	CSI ? <ps> J	DECSED		selective erase in display
					0	from cursor to end of display
					1	from beginning to cursor
					2	the complete display

	CSI ? <ps> K	DECSEL		selective erase in line
					0	from cursor to end of line
					1	from beginning to cursor
					2	the complete line

	CSI ? <psc> ; <ps...> c
			DA		primary device attributes response
					<psc>
					61	level 1
					62	level 2
					63	level 3

					<ps...>					
					1	132 columns
					2	printer port
					3	ReGIS graphics
					4	sixel graphics
					6	selective erase
					7	soft character set (DRCS)
					8	user-defined keys
					9	NRC sets
					13	local editing mode
					15	technical character set
					16	locator device port
					18	windowing capability
					19	dual sessions

	CSI ? <ps...> h	DECSM		set mode
					1	DECCKM - cursor keys (appl)
					2	DECANM - ANSI mode (ignored)
					3	DECCOLM - column mode (132)
					4	DECSCLM - scrolling (smooth)
					5	DECSCNM - screen mode (light bg)
					6	DECOM - origin mode
					7	DECAWM - auto wrap mode
					8	DECARM - auto repeat mode
					10	DECEDM - edit mode
					11	DECLTM - line transmit mode
					13	DECSCFDM - space compression
					14	DECTEM - transmit execution
					16	DECEKEM - edit key exec mode
					18	DECPFF - print form feed mode
					19	DECPEX - printer extent mode
					25	DECTCEM - cursor enable
					35	DECTEK - 4010/4014 mode
					42	DECNRCM - nrc mode (national)
					43	DECGEPM - expanded print
					44	DECGPCM - print color
					45	DECGPCS - color syntax (RGB)
					46	DECGPBM - print background
					47	DECGRPM - rotated print
					53	DEC131TM - VT131 xmit mode
					60	DECHCCM - horizontal coupling
					61	DECVCCM - vertical coupling
					64	DECPCCM - page coupling
					66	DECNKM - numeric keypad (appl)
					67	DECBKM - backarrow (BS)
					68	DECKBUM - keyboard usage (data)
					73	DECXRLM - rate limiting

	CSI ? <ps> i	MC		media copy
					1	print cursor line
					4	turns off autoprint mode
					5	turns on autoprint mode
					8	stop printer-to-host session
					9	start printer-to-host session
					10	print composed main display
					11	print all pages
					18	assign printer to active session
					19	release printer

	CSI ? <ps...> l	DECRM		reset mode
					1	DECCKM - cursor keys (cursor)
					2	DECANM - ANSI (VT52 mode)
					3	DECCOLM - column mode (80)
					4	DECSCLM - scrolling (jump)
					5	DECSCNM - screen mode (dark bg)
					6	DECOM - origin mode
					7	DECAWM - auto wrap mode
					8	DECARM - auto repeat mode
					10	DECEDM - edit mode
					11	DECLTM - line transmit mode
					13	DECSCFDM - space compression
					14	DECTEM - transmit execution
					16	DECEKEM - edit key exec mode
					18	DECPFF - print form feed mode
					19	DECPEX - printer extent mode
					25	DECTCEM - cursor enable
					35	DECTEK - 4010/4014 emulation
					42	DECNRCM - nrc (multinational)
					43	DECGEPM - expanded print
					44	DECGPCM - print color
					45	DECGPCS - color syntax (HLS)
					46	DECGPBM - print background
					47	DECGRPM - rotated print
					53	DEC131TM - VT131 xmit mode
					60	DECHCCM - horizontal coupling
					61	DECVCCM - vertical coupling
					64	DECPCCM - page coupling
					66	DECNKM - numeric keypad (numer)
					67	DECBKM - backarrow (DEL)
					68	DECKBUM - keyboard usage (type)
					73	DECXRLM - rate limiting

	CSI ? <ps> n	DSR		device status report
					6	DECXCPR - request extended
						cursor position report;
						reponse is
						CSI <pl> ; <pc> ; <pp> R
					15	request printer status
						responses are:
						10 - printer ready
						11 - printer not ready
						13 - no printer
						18 - printer busy
						19 - printer assigned to other
						     session
					25	request UDK status
						responses are
						20 - UDKs are unlocked
						21 - UDKs are locked
					26	request keyboard dialect
						response has two parameters:
						<ps1>
						1 - North American
						2 - British
						3 - Flemish
						4 - Canadian (French)
						5 - Danish
						6 - Finnish
						7 - German
						8 - Dutch
						9 - Italian
						10 - Swiss (French)
						11 - Swiss (German)
						12 - Swedish
						13 - Norwegian
						14 - French/Belgian
						15 - Spanish
						16 - Portuguese

						<ps2>
						0 - keyboard ready
						3 - no keyboard
						8 - keyboard busy

					55	request locator device status
						responses are:
						50 - locator device ready
						53 - no locator device
						58 - locator device busy

					56	identification request
						responses have two parameters:
						57 ; 0 - cannot identify locator
						57 ; 1 - mouse
						57 ; 2 - tablet

	CSI ? <pn...> |	DECTTC		set xmit terminatiom mode (extended)

DEC private control sequences with one intermediate

	CSI ? <ps> " q	DECSCA		select protection attribute
					0	not protected
					1	protected
					2	not protected

	CSI ? <pd> $ p	DECRQM		request mode
					1	DECCKM		cursor keys
					2	DECANM		ANSI
					3	DECCOLM		column
					4	DECSCLM		scrolling
					5	DECSCNM		screen
					6	DECOM		origin
					7	DECAWM		autowrap
					8	DECARM		autorepeat
					10	DECEDM		edit
					11	DECLTM		line transmit
					12	DECSCFDM	space compress
					14	DECTEM		xmit execution
					16	DECEKEM		edit key exec
					18	DECPFF		print form feed
					19	DECPEX		printer extent
					25	DECTCEM		cursor enable
					35	DECTEK		4010/4014
					42	DECNRCM		NRCS
					43	DECGEPM		expanded print
					44	DECGPCM		color print
					45	DECGPCS		color pr syntax
					46	DECGPBM		print background
					47	DECGRPM		rotated print
					53	DEC131TM	VT131 transmit
					60	DECHCCM		horiz coupling
					61	DECVCCM		vert coupling
					64	DECPCCM		page coupling
					66	DECNKM		numeric keypad
					67	DECBKM		backarrow key
					68	DECKBUM		keyboard usage
					73	DECXRLM		rate limiting

	CSI ? <pd> ; <ps> $ y
			DECRPM		report mode
					for values of <pd> see DECRQM:
					CSI ? <pd> $ p
					<ps> is setting of mode:
					0	mode not recognized
					1	set
					2	reset
					3	permanently set
					4	permanently reset

	CSI ? <pn...> ' s
			DECTLTC		transmit line termination characters

Device control strings

	DCS 0 ! u % 5 ST
			DECAUPSS	Assign DEC Supplemental as UPSS
	DCS 1 ! u A ST	DECAUPSS	Assign ISO Latin-1 as UPSS

	DCS <pn...> { <pn...> ST
			DECDLD		down line load soft characters
	DCS <pn...> | <data> ST
			DECUDK		user defined key definition
	DCS 0 ! u % 5 ST
			DECAUPSS	UPSS is DEC supplemental
	DCS 1 ! u A ST	DECAUPSS	UPSS is ISO Latin-1
	DCS <ps> $ p <data> ST
			DECRSTS		restore terminal state
					0	(ignore)
					1	terminal state (DECTSR)
					2	color table (DECCTR)

	DCS $ q <data> ST
			DECRQSS		request selection or setting
	DCS <ps> $ r <data> ST
			DECRPSS		report selection or setting
					0	host's request is invalid
					1	host's request is valid

	DCS 1 $ s <data> ST
			DECTSR		terminal state report
	DCS 2 $ s <data> ST
			DECCTR		color table report
	DCS <ps> $ s <data> ST
			DECRSPS		restore presentation state
					0	(ignore)
					1	cursor information (DECCIR)
					2	tab stop report (DECTABSR)

	DCS 1 $ u <data> ST
			DECCIR		cursor information report
	DCS 1 $ u <data> ST
			DECTABSR	tab stop report
	DCS <pc> $ w <data> ST
			DECLKD		locator key definition
					<pc> values
					0	clear all before loading
					1	clear only for keys defined

VT52 mode control codes

	ESC A		cursor up
	ESC B		cursor down
	ESC C		cursor right
	ESC D		cursor left
	ESC F		enter graphics mode
	ESC G		exit graphics mode
	ESC H		cursor to home position
	ESC I		reverse line feed
	ESC J		erase from cursor to end of screen
	ESC K		erase from cursor to end of line
	ESC Y <pl> <pc>	move cursor to line <pl> column <pc>; space is 1
	ESC Z		identify (host to terminal)
	ESC / Z		report (terminal to host)
	ESC =		enter alternate keypad mode
	ESC >		exit alternate keypad mode
	ESC <		exit VT52 mode (enter VT100 mode)
	ESC ^		exter autoprint mode
	ESC _		exit autoprint mode
	ESC W		enter printer controller mode
	ESC X		exit printer controller mode
	ESC ]		print screen
	ESC V		print the line with the cursor

Tektronix 4010/4014 control codes

	BS	^H	left 1 space
	HT	^I	right 1 space
	LF	^J	down 1 line
	VT	^K	up 1 line
	CR	^M	set alpha mode and left
	ESC	^[	set LCE
	FS	^/	set point plot mode
	GS	^]	set graph mode and dark vector
	RS	^~	set incremental plot mode
	US	^?	set alpha mode

	ESC ^E	ENQ	return terminal status
	ESC ^J	LF	set LCE
	ESC ^L	FF	erase and home (page)
	ESC ^M	CR	set LCE
	ESC ^W	ETB	make hard copy
	ESC ^X	CAN	set bypass mode
	ESC ^Z	SUB	set GIN and bypass
	ESC 0		smallest size
	ESC 1		largest size
	ESC 2		largest size
	ESC 3		largest size
	ESC 8		largest size
	ESC 9		large size
	ESC :		smallest size
	ESC ;		small size
	ESC ?		low Y in graph mode
	ESC `		(N) solid
	ESC a		(N) dotted
	ESC b		(N) dot-dash
	ESC c		(N) short dash
	ESC d		(N) long dash
	ESC e		(N) solid
	ESC f		(N) solid
	ESC g		(N) solid
	ESC h		(B) solid
	ESC i		(B) dotted
	ESC j		(B) dot-dash
	ESC k		(B) short dash
	ESC l		(B) long dash
	ESC m		(B) solid
	ESC n		(B) solid
	ESC o		(B) solid
	ESC DEL		set LCE

Codes sent by editing keys

	Find		CSI 1 ~
	Insert Here	CSI 2 ~
	Remove		CSI 3 ~
	Select		CSI 4 ~
	Prev Screen	CSI 5 ~
	Next Screen	CSI 6 ~

Codes sent by arrow keys

	Key		Cursor		Application	VT52

	Up		CSI A		SS3 A		ESC A
	Down		CSI B		SS3 B		ESC B
	Right		CSI C		SS3 C		ESC C
	Left		CSI D		SS3 D		ESC D

Codes sent by numeric keypad keys

	Key (numeric)	Application	VT52 Application
	0		SS3 p		ESC ? p
	1		SS3 q		ESC ? q
	2		SS3 r		ESC ? r
	3		SS3 s		ESC ? s
	4		SS3 t		ESC ? t
	5		SS3 u		ESC ? u
	6		SS3 v		ESC ? v
	7		SS3 w		ESC ? w
	8		SS3 x		ESC ? x
	9		SS3 y		ESC ? y
	- (minus)	SS3 m		ESC ? m
	, (comma)	SS3 l		ESC ? l
	. (period)	SS3 n		ESC ? n
	Enter (CR)	SS3 M		ESC ? M
	PF1 (SS3 P)	SS3 P		ESC P
	PF2 (SS3 Q)	SS3 Q		ESC Q
	PF3 (SS3 R)	SS3 R		ESC R
	PF4 (SS3 S)	SS3 S		ESC S

Codes sent by top row function keys

	Key	VT300 mode	VT100, VT52 mode
	F6	CSI 17 ~
	F7	CSI 18 ~
	F8	CSI 19 ~
	F9	CSI 20 ~
	F10	CSI 21 ~
	F11	CSI 23 ~	ESC
	F12	CSI 24 ~	BS
	F13	CSI 25 ~	LF
	F14	CSI 26 ~
	Help	CSI 28 ~
	Do	CSI 29 ~
	F17	CSI 31 ~
	F18	CSI 32 ~
	F19	CSI 33 ~
	F20	CSI 34 ~

Keys used to send 7 bit control codes

	NUL	^2 or ^sp
	ESC	^3 or ^[
	FS	^4 or ^/
	GS	^5 or ^]
	RS	^6 or ^~
	US	^7 or ^?
	DEL	^8

Multinational Compose sequences
.A}
	Character		3-stroke sequence

	"  (quotation mark)	� (sp)
	#  (number sign)	++
	'  (apostrophe)		�
	@  (commercial at)	aa or AA
	[  (opening bracket)	((
	\  (backslash)		// or /<
	]  (closing bracket)	))
	^  (circumflex accent)	^ (sp)
	`  (grave accent)	` (sp)
	{  (open brace)		(-
	|  (vertical line)	/^
	}  (closing brace)	)-
	~  (tilde)		~ (sp)
	�  (inverted !)		!!
	�  (cent sign)		c/ or C/ or c| or C|
	�  (pound sign)		l- or L- or l= or L=
	�  (yen sign)		y- or Y- or y= or Y=
	�  (section sign)	so or SO or s! or S! or s0 or S0
	�  (currency sign)	xo or XO or x0 or X0
	�  (copyright sign)	co or CO or c0 or C0
	�  (feminine ord ind)	a_ or A_
	�  (angle quote left)	<<
	�  (degree sign)	0^
	�  (plus/minus sign)	-+
	�  (superscript 2)	2^
	�  (superscript 3)	3^
	�  (micro sign)		/u or /U (in order)
	�  (paragraph sign)	p! or P!
	�  (middle dot)		.^
	�  (superscript 1)	1^
	�  (masculine ord ind)	o_ or O_
	�  (angle quote right)	>>
	�  (one quarter)	14 (in order)
	�  (one half)		12 (in order)
	�  (inverted ?)		??
	�  (A grave)		A`
	�  (A acute)		A'
	�  (A circumflex)	A^
	�  (A tilde)		A~
	�  (A umlaut)		A" or �A
	�  (A ring)		A* or A� (degree sign)
	�  (A E ligature)	AE (in order)
	�  (C cedilla)		C,
	�  (E grave)		E`
	�  (E acute)		E'
	�  (E circumflex)	E^
	�  (E umlaut)		E" or �E
	�  (I grave)		I`
	�  (I acute)		I'
	�  (I circumflex)	I^
	�  (I umlaut)		I" or �I
	�  (N tilde)		N~
	�  (O grave)		O`
	�  (O acute)		O'
	�  (O circumflex)	O^
	�  (O tilde)		O~
	�  (O umlaut)		O" or �O*%5
	�  (O E ligature)	OE (in order)
	�  (O slash)		O/
	�  (U grave)		U`
	�  (U acute)		U'
	�  (U circumflex)	U^
	�  (U umlaut)		U" or .A�U*%5
	�  (Y umlaut)		Y" or .A�Y
	�  (German sharp s)	ss
	�  (a grave)		a`
	�  (a acute)		a'
	�  (a circumflex)	a^
	�  (a tilde)		a~
	�  (a umlaut)		a" or �a
	�  (a ring)		a* or a� (degree sign)
	�  (a e ligature)	ae (in order)
	�  (c cedilla)		c, (comma)
	�  (e grave)		e`
	�  (e acute)		e'
	�  (e circumflex)	e^
	�  (e umlaut)		e" or �e
	�  (i grave)		i`
	�  (i acute)		i'
	�  (i circumflex)	i^
	�  (i umlaut)		i" or �i
	�  (n tilde)		n~
	�  (o grave)		o`
	�  (o acute)		o'
	�  (o circumflex)	o^
	�  (o tilde)		o~
	�  (o umlaut)		o" or �o*%5
	�  (o e ligature)	oe
	�  (o slash)		o/
	�  (u grave)		u`
	�  (u acute)		u'
	�  (u circumflex)	u^
	�  (u umlaut)		u" or .A�u*%5
	�  (y umlaut)		y" or .A�y

ISO Latin compose sequences
.A
	Character		3-stroke sequence

	�  (no break space)	sp sp
	�  (broken vert bar)	|| or !^
	�  (logical not)	-, (in order)
	�  (soft hyphen)	--
	�  (registered trademk)	ro or RO
	�  (macron)		-^ or _^
	�  (three quarters)	34 (in order)
	�  (division sign)	-:
	�  (multiplication)	xx
	�  (acute accent)	''
	�  (cedilla)		,,
	�  (dieresis)		"" or " (sp)
	�  (Y acute)		Y'
	�  (y acute)		y'
	�  (capital thorn)	TH
	�  (small thorn)	th
	�  (capital Eth)	-D
	�  (small Eth)		-d
*%5
		DEC Multinational character set

  <- C0 -><--------- GL ---------><- C1 -><--------- GR --------->
    0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15
  -----------------------------------------------------------------
0 |000|016|032|048|064|080|096|112#128|144|160|176|192|208|224|240|
  |NUL|DLE|SP | 0 | @ | P | ` | p #   |DCS|   | � | � |   | � |   |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
1 |001|017|033|049|065|081|097|113#129|145|161|177|193|209|225|241|
  |SOH|DC1| ! | 1 | A | Q | a | q #   |PU1| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
2 |002|018|034|050|066|082|098|114#130|146|162|178|194|210|226|242|
  |STX|DC2| " | 2 | B | R | b | r #   |PU2| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
3 |003|019|035|051|067|083|099|115#131|147|163|179|195|211|227|243|
  |ETX|DC3| # | 3 | C | S | c | s #   |STS| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
4 |004|020|036|052|068|084|100|116#132|148|164|180|196|212|228|244|
  |EOT|DC4| $ | 4 | D | T | d | t #IND|CCH|   |   | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
5 |005|021|037|053|069|085|101|117#133|149|165|181|197|213|229|245|
  |ENQ|NAK| % | 5 | E | U | e | u #NEL|MW | � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
6 |006|022|038|054|070|086|102|118#134|150|166|182|198|214|230|246|
  |ACK|SYN| & | 6 | F | V | f | v #SSA|SPA|   | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
7 |007|023|039|055|071|087|103|119#135|151|167|183|199|215|231|247|
  |BEL|ETB| ' | 7 | G | W | g | w #ESA|EPA| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
8 |008|024|040|056|072|088|104|120#136|152|168|184|200|216|232|248|
  |BS |CAN| ( | 8 | H | X | h | x #HTS|   | � |   | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
9 |009|025|041|057|073|089|105|121#137|153|169|185|201|217|233|249|
  |HT |EM | ) | 9 | I | Y | i | y #HTJ|   | � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
10|010|026|042|058|074|090|106|122#138|154|170|186|202|218|234|250|
  |LF |SUB| * | : | J | Z | j | z #VTS|   | � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
11|011|027|043|059|075|091|107|123#139|155|171|187|203|219|235|251|
  |VT |ESC| + | ; | K | [ | k | { #PLD|CSI| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
12|012|028|044|060|076|092|108|124#140|156|172|188|204|220|236|252|
  |FF |FS | , | < | L | \ | l | | #PLU|ST |   | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
13|013|029|045|061|077|093|109|125#141|157|173|189|205|221|237|253|
  |CR |GS | - | = | M | ] | m | } #RI |OSC|   | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
14|014|030|046|062|078|094|110|126#142|158|174|190|206|222|238|254|
  |SO |RS | . | > | N | ^ | n | ~ #SS2|PM |   |   | � |   | � |   |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
15|015|031|047|063|079|095|111|127#143|159|175|191|207|223|239|255|
  |SI |US | / | ? | O | _ | o |DEL#SS3|APC|   | � | � | � | � |   |
  -----------------------------------------------------------------
.A
		ISO Latin-1 character set

  <- C0 -><--------- GL ---------><- C1 -><--------- GR --------->
    0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15
  -----------------------------------------------------------------
0 |000|016|032|048|064|080|096|112#128|144|160|176|192|208|224|240|
  |NUL|DLE|SP | 0 | @ | P | ` | p #   |DCS|NBS| � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
1 |001|017|033|049|065|081|097|113#129|145|161|177|193|209|225|241|
  |SOH|DC1| ! | 1 | A | Q | a | q #   |PU1| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
2 |002|018|034|050|066|082|098|114#130|146|162|178|194|210|226|242|
  |STX|DC2| " | 2 | B | R | b | r #   |PU2| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
3 |003|019|035|051|067|083|099|115#131|147|163|179|195|211|227|243|
  |ETX|DC3| # | 3 | C | S | c | s #   |STS| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
4 |004|020|036|052|068|084|100|116#132|148|164|180|196|212|228|244|
  |EOT|DC4| $ | 4 | D | T | d | t #IND|CCH| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
5 |005|021|037|053|069|085|101|117#133|149|165|181|197|213|229|245|
  |ENQ|NAK| % | 5 | E | U | e | u #NEL|MW | � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
6 |006|022|038|054|070|086|102|118#134|150|166|182|198|214|230|246|
  |ACK|SYN| & | 6 | F | V | f | v #SSA|SPA| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
7 |007|023|039|055|071|087|103|119#135|151|167|183|199|215|231|247|
  |BEL|ETB| ' | 7 | G | W | g | w #ESA|EPA| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
8 |008|024|040|056|072|088|104|120#136|152|168|184|200|216|232|248|
  |BS |CAN| ( | 8 | H | X | h | x #HTS|   | � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
9 |009|025|041|057|073|089|105|121#137|153|169|185|201|217|233|249|
  |HT |EM | ) | 9 | I | Y | i | y #HTJ|   | � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
10|010|026|042|058|074|090|106|122#138|154|170|186|202|218|234|250|
  |LF |SUB| * | : | J | Z | j | z #VTS|   | � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
11|011|027|043|059|075|091|107|123#139|155|171|187|203|219|235|251|
  |VT |ESC| + | ; | K | [ | k | { #PLD|CSI| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
12|012|028|044|060|076|092|108|124#140|156|172|188|204|220|236|252|
  |FF |FS | , | < | L | \ | l | | #PLU|ST | � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
13|013|029|045|061|077|093|109|125#141|157|173|189|205|221|237|253|
  |CR |GS | - | = | M | ] | m | } #RI |OSC| � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
14|014|030|046|062|078|094|110|126#142|158|174|190|206|222|238|254|
  |SO |RS | . | > | N | ^ | n | ~ #SS2|PM | � | � | � | � | � | � |
  |---|---|---|---|---|---|---|---#---|---|---|---|---|---|---|---|
15|015|031|047|063|079|095|111|127#143|159|175|191|207|223|239|255|
  |SI |US | / | ? | O | _ | o |DEL#SS3|APC| � | � | � | � | � | � |
  -----------------------------------------------------------------*<