C
Host Command Summary

This appendix lists the host commands that are valid in each terminal emulation mode. Additional special commands are listed at the back.

The following conventions are used in this command list. Spaces in a command are for clarity only and are not to be entered as part of the command. A space character that is part of the command will be shown as SP. An asterisk (*) in a command indicates the location of one or more parameters except otherwise indicated next to the command.

Note that IBM 3270 and IBM 5250 emulation commands are not included because of their complexity. Refer to the manuals supplied with these terminals for the host commands that are supported.

VT52 Emulation

CHARACTER SET SELECTION

Invoke G0 character set                                                     SI
Invoke G1 character set                                                     SO
Select G0 character set                                                       ESC G
Select Line Drawing character set                                      ESC F

CURSOR

Direct cursor addressing (1 to 96 = SP to DEL)                 ESC Y *line *column
Insert FF character & advance cursor                                FF
Line feed                                                                           LF
Move cursor down one line                                               ESC B
Move cursor down one line                                               VT
Move cursor home                                                            ESC H
Move cursor one column left                                            BS
Move cursor one column left                                            ESC D
Move cursor one column right                                          ESC C
Move cursor to left margin of current line                         CR
Move cursor to next tab stop                                             HT
Move cursor up one line                                                   ESC A
Reverse line feed                                                               ESC I

TEXT ERASURE

Erase text to end of line                                                     ESC K
Erase text to end of screen                                                 ESC J

GENERAL

Cancel current ESC sequence & display error                    CAN
Sound audible tone                                                           BEL

MODE SELECTION

Select numeric keypad application mode                           ESC =
Select numeric keypad normal mode                                 ESC >
Select VT100 mode                                                           ESC <

PRINTING

Auto print off                                                                    ESC _
Auto print on                                                                    ESC ^
Print controller off                                                            ESC X
Print controller on                                                             ESC W

REPORTS

Request mode identification report                                    ESC Z
Send terminal emulation mode report                                ESC # ! 0

ANSI VT100 Emulation

CHARACTER ATTRIBUTES

Assign * attribute(s) to following characters                      ESC [ * m

Default attributes             0           Blue foreground                  34         White background                  50
Bold on                           1           Magenta foreground            35         Red background                                     51
Dim White                2           Cyan foreground                 36         Red background                           52
Underline on                   4           White foreground          37         Yellow background      53
Flashing on               5           'Normal' foreground            39         Blue background                          54
Inverse video on             7           White background         40         Magenta background                    55
Half intensity off             22         Red background                  41         Cyan background                   56
Underline off                  24         Red background                  42         White background                  57
Flashing off              25         Yellow background       43        'Normal' background           59
Inverse video off            27         Blue background                 44
Black foreground            30         Magenta background           45
Red foreground        31         Cyan background          46
Green foreground           32         White background         47
Yellow foreground   33         'Normal' background           49

Deselect underline character mode                                    ESC [ < 1 h
Double width & height (top half) characters                      ESC # 3
Double width & height (bottom half) characters                ESC # 4
Double width single height characters                               ESC # 6
Select underline character mode                                        ESC [ < 1 l
Single width & height (normal) characters                        ESC # 5

CHARACTER SET SELECTION

Assign G0 label to * character set                                      ESC ( *
Assign G1 label to * character set                                      ESC ) *

        ASCII / N.American      B                 Italian                      Y
        British                     A                Danish / Norwegian '  or  E  or  6
        Dutch                      4                 Portuguese              %6
        Finnish                    5  or  C       Spanish                   Z
        French                     R                 Swedish                         7  or  H
        French Canadian            9 or  Q        Swiss                       =
        German                         K                Line Drawing          0

Assign G0 labelled set to 7 bit codes                                  SI
Assign G1 labelled set to 7 bit codes                                  SO

CURSOR

Clear tab stops (0 = cursor position, 2 or 3 = all)               ESC [ * g
Deselect auto carriage return                                             ESC [ 20 l
Disable cursor                                                                   ESC [ ? 50 l
Disable cursor autowrap                                                    ESC [ ? 7 l
Enable cursor                                                                    ESC [ ? 50 h
Enable cursor autowrap                                                     ESC [ ? 7 h
Index cursor (move down one line)                                  ESC D
Insert FF character & advance cursor                                FF
Line feed                                                                           LF
Move cursor down * lines                                                 ESC [ * B
Move cursor down one line                                               VT
Move cursor left * columns                                               ESC [ * D
Move cursor one column left                                            BS
Move cursor right * columns                                            ESC [ * C
Move cursor to beginning of next line                              ESC E
Move cursor to left margin of current line                         CR
Move cursor to line (*l) column (*c)                                ESC [ *l ; *c H
Move cursor to line (*l) column (*c)                                ESC [ *l ; *c f
Move cursor to next tab stop                                             HT
Move cursor up * lines                                                      ESC [ * A
Reverse index cursor (move up one line)                          ESC M
Select absolute origin mode                                               ESC [ ? 6 l
Select auto carriage return                                                 ESC [ 20 h
Select relative origin mode                                                ESC [ ? 6 h
Set tab stop at current cursor position                                ESC H
Tab cursor backward * tabs                                               ESC [ * Z
Tab cursor forward * tabs                                                 ESC [ * I

DISPLAY

Scroll display down * lines                                                ESC [ * T
Scroll display up * lines                                                    ESC [ * S
Select 80 column display mode                                         ESC [ ? 3 l
Select 132 column display mode                                       ESC [ ? 3 h
Select invisible display                                                      ESC [ ? 75 l
Select normal colour display mode                                    ESC [ ? 5 l
Select reverse colour display mode                                    ESC [ ? 5 h
Select thin-line graphics in ANSI BBS mode                     ESC 10 m
Select visible display                                                         ESC [ ? 75 h
Set top (*t) and bottom (*b) margin positions                   ESC [ *t ; *b r

EDITING

Delete * characters from cursor position right                   ESC [ * P
Delete * lines from cursor position down                          ESC [ * M
Enable all characters to be erased                                      ESC [ 6 h
Enable erasure of unprotected characters only                   ESC [ 6 l
End protected area                                                            ESC W
Erase * characters & attributes from cursor right               ESC [ * X
Erase line portion (0 = from, 1 = to, 2 = all)                      ESC [ * K
Erase screen portion (0 = from, 1 = to, 2 = all)                  ESC [ * J
Insert * blank lines                                                            ESC [ * L
Insert * space characters                                                    ESC [ * @
Protect characters with * attribute(s)                                  ESC [ * }
Select insert mode                                                             ESC [ 4 h
Select replace mode                                                           ESC [ 4 l
Start protected area                                                            ESC V

GENERAL OPERATION

Cancel current ESC sequence & display error                    CAN
Local echo mode on                                                          ESC [ 12 l
Local echo mode off                                                         ESC [ 12 h
Reset features (* = * in ESC [ * h commands)                   ESC [ * l
Reset terminal emulation                                                   ESC c
Restore saved features                                                       ESC 8
Save features (char. set, attrib's, cursor, origin)                  ESC 7
Select VT52 mode                                                             ESC [ ? 2 l
Select VT100 mode from VT320 mode                            ESC [ 61 " p
Select VT500 7 bit mode                                                   ESC [ 62 ; 1 " p
Select VT500 8 bit mode                                                   ESC [ 62 " p
Select VT500 8 bit mode (* can be 0 or 2)                        ESC [ 62 ; * " p
Select Wyse 60 mode                                                        ESC [ 42 h
Set features (* = * in ESC [ * h commands)                      ESC [ * h
Soft reset                                                                           ESC [ ! p
Sound audible tone                                                           BEL
Transmit rate limited to 150-180 cps                                 ESC [ ? 73 h
Transmit rate unlimited                                                     ESC [ ? 73 l

KEYBOARD

Backspace key performs backspace only                           ESC [ ? 67 h
Backspace key performs delete                                          ESC [ ? 67 l
Data processing keys mode                                               ESC [ ? 68 h
Disable key autorepeat                                                      ESC [ ? 8 l
Disable keyboard                                                              ESC `
Disable keyboard input                                                     ESC [ 2 h
Enable key autorepeat                                                       ESC [ ? 8 h
Enable keyboard                                                               ESC b
Enable keyboard input                                                      ESC [ 2 l
Select cursor key application mode                                   ESC [ ? 1 h
Select cursor key normal mode                                         ESC [ ? 1 l
Select keypad application mode                                        ESC =
Select keypad numeric mode                                             ESC >
Typewriter keys mode                                                       ESC [ ? 68 l

LOCAL EDITING

Data block for transmission is cursor line                          ESC [ ? 11 h
Data block for transmission is page                                   ESC [ ? 11 l
Disable transmission of protected areas                              ESC [ 1 l
Edit key changes mode immediately                                 ESC [ ? 16 h
Edit key waits for host to enable mode change                  ESC [ ? 16 l
Enable all selected areas to be transmitted                          ESC [ 15 h
Enable only cursor area to be transmitted                          ESC [ 15 l
Enable transmission of all characters                                 ESC [ 17 h
Enable transmission of protected areas                              ESC [ 1 h
Enable transmission of selected characters only                 ESC [ 17 l
End of block indicator character(s)                                   ESC [ * |
(0 = no, 1 = FF, 2 = ETX, 3 = EOT, 4 = CR, 5 = DC3)
End selected area                                                               ESC G
Enter edit mode                                                                 ESC [ ? 10 h
Enter interactive mode                                                      ESC [ ? 10 l
Function according to ANSI rules                                     ESC [ ? 53 l
Function as VT131 terminal                                              ESC [ ? 53 h
Line termination characters (ASCII decimal)                     ESC [ ? * ' s
Space compression mode off                                             ESC [ ? 13 l
Space compression mode on                                             ESC [ ? 13 h
Start selected area                                                              ESC F
Transmission occurs immediately                                      ESC [ ? 14 h
Transmission waits for host                                               ESC [ ? 14 l
Transmit block of data                                                      ESC 5
Transmit scrolling region                                                  ESC [ 16 h
Transmit VT131 or ANSI partial page                               ESC [ 16 l

PRINTING

Auto print off                                                                    ESC [ ? 4 i
Auto print on                                                                    ESC [ ? 5 i
Form feed at end of print                                                  ESC [ ? 18 h
No form feed at end of print                                             ESC [ ? 18 l
Print controller on                                                             ESC [ 5 i
Print controller off                                                            ESC [ 4 i
Print cursor line                                                                 ESC [ ? 1 i
Print page                                                                          ESC [ i
Print page prints complete page                                         ESC [ ? 19 h
Print page prints scrolling region only                               ESC [ ? 19 l

REPORTS

Report compatibility level                                                 ESC [ > c
Report current colour                                                        ESC [ = M
Report cursor position                                                       ESC [ 6 n
Report keyboard nationality                                              ESC [ ? 26 n
Report operating status                                                      ESC [ 5 n
Report terminal emulation mode                                       ESC # ! 0
Report VT terminal identity                                               ESC [ 0 c
Report VT terminal identity                                               ESC [ c
Report VT terminal identity                                               ESC Z

ANSI VT500 Emulation

When running the VT500 7 or 8 bit emulation, the following commands will be executed in addition those listed previously for ANSI VT100.

CHARACTER ATTRIBUTES

Assign * attribute(s) to following characters                      ESC [ * m

        Attributes:   Invisible          8         Flashing off          25
                          Bold off                   22               Reverse video off    27
                          Underline off  24       Invisible off          28

Non-erase attribute on                                                       ESC [ 1 " q
Non-erase attribute off (* = 0 or 2)                                   ESC [ * " q

CHARACTER SET SELECTION

Assign G2 label to * character set                                      ESC * *   (second * is parameter)
Assign G3 label to * character set                                      ESC + *

                    Extra character sets: DEC Additional             %5
                                                    ISO Latin-1 Additional  A
                                                    DOC-18 (optional)        D

Assign G1 labelled set to 8 bit codes                                  ESC ~
Assign G2 labelled set to 7 bit codes                                  ESC n
Assign G2 labelled set to 7 bit codes for 1 character          ESC N
Assign G2 labelled set to 8 bit codes                                  ESC }
Assign G3 labelled set to 7 bit codes                                  ESC o
Assign G3 labelled set to 7 bit codes for 1 character          ESC O
Assign G3 labelled set to 8 bit codes                                  ESC |
Clear redefinable character set                                           ESC P 1 ; 1 ; 2 { SP @ ESC \
Load redefinable character set                                           ESC P * { * ESC \
Preferred Additional set is DEC                                         ESC P 0 ! u %5 ESC \
Preferred Additional set is ISO Latin-1                              ESC P 1 ! u A ESC \
Select Multinational character set mode                             ESC [ ? 42 l
Select National character set mode                                     ESC [ ? 42 h

DISPLAY

Display host-writable status line                                         ESC [ 2 $ ~
Display indicator status line                                               ESC [ 1 $ ~
Display no status line                                                         ESC [ 0 $ ~
Send data to main display                                                  ESC [ 0 $ }
Send data to status line                                                      ESC [ 1 $ }
Display time on status line (*h = hour (24) *m = minutes)  ESC [ *h ; *m , p
Rectangular fill (*c = fill character, *sr = start row
    *sc = start column, *er = end row, *ec = end column          ESC [ *c ; *sr ; *sc ; *er ; *ec $ z

EDITING

Selective erase line (0 = from, 1 = to, 2 = all)                    ESC [ ? * K
Selective erase screen (0 = from, 1 = to, 2 = all)                ESC [ ? * J

GENERAL OPERATION

Select C1 7 bit control mode                                             ESC SP F
Select C1 8 bit control mode                                             ESC SP G

KEYBOARD

Select application keypad mode                                        ESC [ ? 66 h
Select numeric keypad mode                                             ESC [ ? 66 l

PF KEYS

Clear all PF keys                                                                ESC P 0 ; 1 | ESC \
Lock PF keys                                                                    ESC P 1 ; 0 | ESC \
Program a PF key                                                              ESC P * ; * | * / * ESC \

PRINTING

Enable bidirectional printing                                             ESC [ 7 i
Disable bidirectional printing                                            ESC [ 6 i
Enable printer/tablet to talk directly to host (one way)       ESC [ ? 9 i
Disable printer/tablet from talking directly to host             ESC [ ? 8 i
Destination port (only first * is parameter: 0 = None,
            1 = LPT 1/2, 2 = COM 1, 3 = COM 2, etc.)           ESC [ * * u

REPORTS

Request colour table report                                                ESC [ 2 $ u
Request control function settings                                       ESC P $ q
Request cursor information report                                     ESC [ 1 $ w
Request emulation state report                                           ESC [ 1 $ u
Request locator device port status                                      ESC [ ? 55 n
Request locator device type                                               ESC [ ? 56 n
Request mode settings                                                       ESC [ * $ p
Request tab stop report                                                      ESC [ 2 $ w
Request user-preferred Additional set                                ESC [ & u
Restore colour table                                                           ESC P 2 $ p
Restore cursor information                                                ESC P 1 $ t
Restore emulation state                                                      ESC P 1 $ p
Restore tab stops                                                                ESC P 2 $ t

ANSI VT420 Emulation

When running the VT420 emulation, the following commands will be executed in addition those listed previously for ANSI VT100 and VT500.

CURSOR MOVEMENT & PANNING

Back index                                                                        ESC 6
Forward index                                                                   ESC 9
Pan down (*l = number of lines)                                       ESC [ *l S
Pan up (*l = number of lines)                                            ESC [ *l T
Vertical cursor coupled mode                                            ESC [ ? 61 h
Vertical cursor uncoupled mode                                        ESC [ ? 61 l
Page cursor coupled mode                                                ESC [ ? 64 h
Page cursor uncoupled mode                                            ESC [ ? 64 l

EDITING

Delete column(s)  (*c = number of columns to delete)      ESC [ *c ' ~
Insert column(s)  (*c = number of columns to insert)        ESC [ *c ' }

GENERAL OPERATION

Secure reset (*n = any number in range 0 - 16383)           ESC [ *n + p
Secure reset confirmation (*n = number in range 0 - 16383)              ESC [ *n * q

MACROS

Define macro                                                              ESC P *n ; *d ; *e ! z D...D ESC \

                                       *n = Macro ID number         0-63

                                       *d = Delete all macros          0
                                               Delete current macro    1

                        *e = Encoding format for macro text:
                                       Standard ASCII characters    0
                          Hex pairs for each ASCII character   1

                                                  Control data string    D...D

                                     Repeat sequence introducer    !

Invoke macro (*n = macro ID number)                      ESC [ *n * z

KEYBOARD

Enable local functions                                                       ESC [ *n ; *c ; ... *n ; *c + q

        *n = Function number:                       *c =    Control performed:
                All local functions        0                       Factory default              0
                Local copy & paste    1                          Enable local function           1
                Local panning            2                         Disable local function    2
                Local window resize  3

Local function key control                                                ESC [ *k ; *f ; ... *k ; *f * }

        *k =            Function key number:                       *f =      Function performed:
               All local function keys        0                 Factory default        0
               F1 or Hold                    1                  Local function        1
               F2 or Print                    2                  Send key sequence 2
               F3 or Set-Up                 3                  Disable key                   3
               F4 or Session                4

Select modifier key reporting                                            ESC [ *k ; *c ... *k ; *c + r

        *k =            Key number:                         *c =     Control performed:
              All keys                      0                    Factory default                    0
               Left Shift                    1                    Modifier function                1
               Right Shift                  2                    Extended keyboard report   2
               Lock key                    3                    Key disabled                       3
               Ctrl key                      4
               Left Alt Function        5
               Right Alt Function        6
               Left Compose Char     7
               Right Compose Char   8

PAGE MEMORY

Set lines per page                                                              ESC [ *l t

                                     Session:  Dual         Single
                                             *l =  3 pages            6 pages       24
                                                     2 pages            5 pages       25
                                                     2 pages            4 pages       36
                                                     1 page      3 pages        48
                                                     1 page      2 pages        72
                                                     -               1 page          144

Set left & right margins (*l = left column, *r = right)        ESC [ *l ; *r s
Vertical split screen mode - L&R margins can be changed  ESC [ ? 69 h
Vertical split screen mode - L&R margins cannot be changed             ESC [ ? 69 l
Move cursor to page *n at same position                           ESC [ *n SP P

RECTANGULAR AREA OPERATIONS

Copy rectangular area                                    ESC [ *t ; *l ; *b ; *r ; *s ; *dt ; *dl ; *dp $ v

        *t   Top-line border                     *s  Source page number
        *l   Left-column border       *dt   Destination top-line border
        *b  Bottom-line border        *dl   Destination left-column border
        *r   Right-column border             *dp     Destination page number

Erase rectangular area                                                       ESC [ *t ; *l ; *b ; *r  $ z

        *t   Top-line border             *b   Bottom-line border
        *l   Left-column border *r   Right-column border

Fill rectangular area                                                           ESC [ *f ; *t ; *l ; *b ; *r  $ x

        *f   Decimal code of fill character           *b  Bottom-line border
        *t   Top-line border                                *r   Right-column border
        *l   Left-column border

Selective erase rectangular area                                         ESC [ *t ; *l ; *b ; *r  $ {

        *t   Top-line border             *b   Bottom-line border
        *l   Left-column border *r   Right-column border

Select attribute change extent                                            ESC [ *c * x

                    *c = character positions affected:
                          Stream of character positions                         0 or 1
                          Rectangular area of character positions          2

Change attributes in rectangular area                                 ESC [ *t ; *l ; *b ; *r  *a $ r

        *t   Top-line border             *r    Right-column border
        *l   Left-column border *a   Visual character attributes
        *b  Bottom-line border

Reverse attributes in rectangular area                                 ESC [ *t ; *l ; *b ; *r  *a $ t

        *t   Top-line border             *r    Right-column border
        *l   Left-column border *a   Visual character attributes
        *b  Bottom-line border

VT420 REPORTS

Tertiary device attribute request                                  ESC [ = c    or    ESC [ = 0 c
Request extended cursor position report                      ESC [ ? 6 n
Request checksum of rectangular area                         ESC [ *id ; *p ; *t ; *l ; *b ; *r * y

        *id Request label           *l   Left-column border
        *p  Page number           *b  Bottom-line border
        *t   Top-line border             *r    Right-column border

Request macro space report                                         ESC [ ? 62 n
Request memory checksum report (*l = request label) ESC [ ? 63 ; *l n
Request multiple session status report                          ESC [ ? 85 n
Request window report                                                ESC [ " v

AIXTerm Emulation

All commands are supported in both VT100 and HFT (High Function Terminal) modes unless indicated otherwise.

SINGLE BYTE CONTROLS

Bell                                                                                   BEL
Backspace                                                                         BS
Horizontal tab                                                                   HT
Linefeed                                                                            LF
Vertical tab                                                                        VT
Form feed                                                                         FF
Carriage return                                                                  CR
Shift out                                                                            SO
Shift in                                                                              SI
Device control 1                                                                DC1
Device control 3                                                                DC3
Cancel                                                                               CAN
Substitute                                                                          SUB
Escape                                                                               ESC

CHARACTER ATTRIBUTES

Assign * attribute(s) to following characters                      ESC [ * m

                                             Normal                                0
                                             Bold                                     1
                                             Underscore                          4
                                             Blink (appears bold)                   5
                                             Reverse                                7
                                             Invisible      (HFT)              8
                                             Foreground colours (HFT)   30...37
                                             Background colours (HFT)  40...47
                                             Foreground colours (HFT)   90...97
                                             Background colours (HFT)  100...107

CHARACTER SET SELECTION

United Kingdom character set G0 (VT100)                       ESC ( A
United Kingdom character set G1 (VT100)                       ESC ) A
United Kingdom character set G2 (VT100)                       ESC * A
United Kingdom character set G3 (VT100)                       ESC + A
ASCII (USASCII) character set G0 (VT100)                     ESC ( B
ASCII (USASCII) character set G1 (VT100)                     ESC ) B
ASCII (USASCII) character set G2 (VT100)                     ESC * B
ASCII (USASCII) character set G3 (VT100)                     ESC + B
Special graphics character set G0 (VT100)                        ESC ( 0
Special graphics character set G1 (VT100)                        ESC ) 0
Special graphics character set G2 (VT100)                        ESC * 0
Special graphics character set G3 (VT100)                        ESC + 0
Single shift G2 (VT100)                                                    ESC N
Single shift G3 (VT100)                                                    ESC O
Set G0 character set (HFT)                                                ESC ( <
Set G1 character set (HFT)                                                ESC ) <
Lock shift G2 (VT100)                                                     ESC n
Lock shift G3 (VT100)                                                     ESC o

CURSOR

Clear tab stop                                                                    ESC [ * g

                          Clear horizontal tab stop at active position     0
                          Vertical tab at cursor line (HFT)              1
                          Horizontal tabs on line (HFT)                        2
                          All horizontal tabs                                   3
                          All vertical tabs (HFT)                            4

Vertical tab stop (HFT)                                                      ESC I
Cursor backward * tabs                                                     ESC [ * Z
Cursor horizontal absolute                                                 ESC [ * G
Cursor forward * tabs (HFT)                                             ESC [ * I
Cursor tab stop control (HFT)                                           ESC [ * W
Cursor down * lines (HFT)                                                ESC [ * E
Cursor up * lines                                                               ESC [ * F
Horizontal tab stop                                                            ESC H
Index cursor (move down one line)                                  ESC D
Reverse index cursor (move up one line)                          ESC M
Move cursor to beginning of next line                              ESC E
Move cursor left * columns                                               ESC [ * D
Move cursor down * lines                                                 ESC [ * B
Move cursor right * columns                                            ESC [ * C
Move cursor to line (*l) column (*c)                                ESC [ *l ; *c f
Move cursor to line (*l) column (*c)                                ESC [ *l ; *c H
Move cursor up * lines                                                      ESC [ * A
Move cursor up * tabs (HFT)                                            ESC [ * Y
Restore cursor position                                                      ESC [ u
Save cursor position                                                          ESC [ s

DISPLAY

Restore cursor & attributes                                                ESC 8
Save cursor & attributes                                                    ESC 7
Scroll display down * lines (HFT)                                     ESC [ * T
Scroll display up * lines                                                    ESC [ * S
Scroll left * columns (HFT)                                               ESC [ * SP @
Scroll right * columns (HFT)                                            ESC [ * SP A
Select screen direction (HFT)                                            ESC [ * 1 ; 1 S

                          Left-to-right, set to Latin keyboard         0
                          Right-to-left, set to National keyboard           1

Screen alignment display                                                   ESC # 8
Set top & bottom margins                                                 ESC [ *t ; *b r
Erase status line                                                                 ESC [ ? E
Return from status line                                                      ESC [ ? F
Hide status line                                                                  ESC [ ? H
Show status line                                                                 ESC [ ? S
Go to column * of status line                                             ESC [ ? * T
Set text parameters                                                            ESC ] * ; *t \007

                          Change window name & title to *t                0
                          Sets only the icon name                          1
                          Sets only the title name                           2

EDITING

Delete * characters from cursor position right                   ESC [ * P
Delete * lines from cursor position down                          ESC [ * M
Erase * characters from cursor right                                  ESC [ * X
Erase area (* is one of the following)                                ESC [ * O

                                                    Erase to end of area       0
                                                    Erase from area start            1
                                                    Erase entire area                   2

Erase display (* is one of the following)                           ESC [ * J

                                                   Erase to end of display  0
                                                    Erase from display start 1
                                                    Erase entire display        2

Erase field (* is one of the following)                               ESC [ * N

                                                    Erase to end of field             0
                                                    Erase from field start            1
                                                    Erase entire field                  2

Erase line (* is one of the following)                                 ESC [ * K

                                                    Erase to end of line        0
                                                    Erase from line start       1
                                                    Erase entire line             2

Insert * blank lines                                                            ESC [ * L
Insert * space characters                                                    ESC [ * @

GENERAL OPERATION

Lock shift G2                                                                    ESC n
Lock shift G3                                                                    ESC o
Reset to initial state                                                            ESC c
ANSI specified modes                                                       ESC [ *;...;* h

                                             IRM insert mode                        4
                                             SRM send/rec mode (HFT)  12
                                             TSM tab stop mode (HFT)   18
                                             LNM linefeed/newline         20

XTERM private modes                                                      ESC [ ? *;...;* h

                                       132/80 column mode                       40
                                       Scrollbar hide/show                    42
                                       Save scroll text on/off                43
                                       Margin bell on/off                      44
                                       Reverse wraparound on/off        45
                                       Screen buffer alternate/normal          47
                                       Status line reverse/normal                 48
                                       Scroll mode page/normal                  49

Other private modes                                                          ESC [ ? *;...;* h

                                 Normal/application cursor  (VT100) 1
                                 80/132 columns                                      3
                                 Reverse/normal video                       5
                                 Origin/normal                                   6
                                 Autowrap on/off                                     7
                                 Autorept on/off                                8
                                 CNM CR-NL (HFT)                          21

Reset mode, ANSI specified modes                                   ESC [ * ;...; *
Reset mode, other private modes & XTERM private modes                ESC [ ? *;...;* l
Restore mode, other private modes & XTERM private modes             ESC [ ? *;...;* r
Save mode, other private modes & XTERM private modes ESC [ ? *;...;* s
Ignore everything between ESC - P and ESC \.
                              AIXTerm works as normal after ESC \  ESC - P ... ESC \

KEYBOARD & MOUSE

Select numeric keypad application mode (VT100)            ESC =
Select numeric keypad normal mode (VT100)                  ESC >
Disable manual input (HFT)                                              ESC `
Enable manual input (HFT)                                               ESC b

REPORTS

Device status report (* is one of the following)