CodeChart:Tektronix 4205/ANSI Mode/ESC/OpenBracket

From Terminals
Jump to: navigation, search

Subpages of OpenBracket

Received
0 1 2 3 4 5 6 7
0 NUL DLE SP 0 @ P ` p
1 SOH DC1 ! 1 A Q a q
2 STX DC2 " 2 B R b r
3 ETX DC3 # 3 C S c s
4 EOT DC4 $ 4 D T d t
5 ENQ NAQ % 5 E U e u
6 ACK SYN & 6 F V f v
7 BEL ETB ' 7 G W g w
8 BS CAN ( 8 H X h x
9 HT EM ) 9 I Y i y
10 LF SUB * : J Z j z
11 VT ESC + ; K [ k {
12 FF IS4 , < L \ l |
13 CR IS3 - = M ] m }
14 SO IS2 . > N ^ n ~
15 SI IS1 / ? O _ o DEL
Transmitted
0 1 2 3 4 5 6 7
0 NUL DLE SP 0 @ P ` p
1 SOH DC1 ! 1 A Q a q
2 STX DC2 " 2 B R b r
3 ETX DC3 # 3 C S c s
4 EOT DC4 $ 4 D T d t
5 ENQ NAQ % 5 E U e u
6 ACK SYN & 6 F V f v
7 BEL ETB ' 7 G W g w
8 BS CAN ( 8 H X h x
9 HT EM ) 9 I Y i y
10 LF SUB * : J Z j z
11 VT ESC + ; K [ k {
12 FF IS4 , < L \ l |
13 CR IS3 - = M ] m }
14 SO IS2 . > N ^ n ~
15 SI IS1 / ? O _ o DEL
ESC [ Sequences
Prefix Acronym Description Parameters
@ ICH Insert Character Pn=1
A CUU Cursor Up Pn=1
B CUD Cursor Down Pn=1
C CUF Cursor Forward Pn=1
D CUB Cursor Backward Pn=1
H CUP Cursor Position row=1 ; col=1
I CHT Cursor Horizontal Tab Pn=1
J ED Erase in Display Ps=0
K EL Erase in Line Ps=0
L IL Insert Line Pn=1
M DL Delete Line Pn=1
P DCH Delete Character Pn=1
S SU Scroll Up Pn=1
T SD Scroll Down Pn=1
X ECH Erase Character Pn=1
Z CBT Cursor Backward Tab Pn=1
c DA Device Attributes Ps=0
f HVP Horizontal, Vertical Position row=1 ; col=1
g TBC Tab Clear Ps=0
h SM Set Mode Ps ; ...
i MC Media Copy copy-option=0
l RM Reset Mode Ps ; ...
m SGR Set Graphic Rendition Ps=0 ; ...
n DSR Device Status Report Ps
r TEKSTBM Set Top, Bottom Margins top ; bot
ESC [ Sequences
Prefix Acronym Description Parameters
A CUU F1 Key † none
B CUD F2 Key † none
D CUB F3 Key † none
C CUF F4 Key † none
R CPR Cursor Position Report row ; col
c DA Device Attributes Report ?1;2
n DSR Device Status Report 0

† Note: Only transmitted when Cursor Key mode is reset.

Media Copy Options
Value Description
0 Copy dialog area (default)
?3 Toggle data logging *
?4 Disable data logging *
?5 Enable data logging *
  • Data logging: unavailable with 4691/4692 copiers.
SM/RM Mode Values
Parameter Mode SM (h) RM (l)
4 IRM (insert/replace) Insert Replace
2 KAM (keyboard action) Keyboard disabled Keyboard enabled
20 LNM (linefeed/newline) LF + CR LF only
12 SRM (send/receive) Echo disabled Echo enabled
?2 TEKANM (ANSI/VT52) No set sequence Select VT52
?8 TEKARM (autorepeat) Enabled Disabled
?7 TEKAWM (autowrap) Enabled Disabled
?1 TEKCKM (cursor keys) Application codes Normal/programmed codes
?3 TEKCOLM (columns) 132 columns 80 columns
<2 TEKDCM (downloaded/multilingual sets) Display enabled Display disabled
?6 TEKOM (origin) Scrolling-region relative Dialog-buffer absolute
<1 TEKORM (overstrike/replace) Overstrike Replace
?5 TEKSCNM (screen) Reverse Normal

SM/RM: one or more parameters; omitted = error.

TEKSTBM Margins
Value Description
top Omitted/zero = 1
bot Omitted/zero = last dialog-area line
ED/EL Values (omitted = 0)
Ps ED (J) EL (K)
0 Cursor to end of dialog buffer Cursor to end of line
1 Start of dialog buffer to cursor Start of line to cursor
2 Entire dialog buffer Entire line
TBC Values (omitted = 0)
Value Description
0 Clear current horizontal tab
2 Clear all horizontal tabs
3 Clear all horizontal tabs
SGR Rendition Values (omitted = 0)
Value Description
0 Restore configured dialog color indices
1 Simulated bold: index 2 (default red)
4 Underline on
5 Blink on
7 Reverse character/background indices
24 Underline off
25 Blink off
27 Restore original character/background indices
39 Character index 1 (default white)
49 Background index 0 (default transparent)

Colors: digit-only codes; indexed forms.

SGR Color Codes
Default color Index Character Cell background
Black 0 30 40
Red 2 31 41
Green 3 32 42
Yellow 7 33 43
Blue 4 34 44
Magenta 6 35 45
Cyan 5 36 46
White 1 37 47
SGR Indexed Colors (index 0-7)
Value Description
<index Character color
=index Cell background (0: graphics shows through)
>index Dialog background (0: graphics shows through)

SM/RM (?, <) and SGR (<, =, >): prefixes carry to following digit-only parameters.

DSR Requests and Reports (ESC [ = CSI)
Request Ps Transmitted reply
5 ESC [ 0 n (status OK)
6 ESC [ row ; column R (CPR)
Omitted and Zero Parameters
Value Description
Count Pn Omitted/zero = 1
CUP/HVP row, column Each omitted/zero = 1
ED, EL, TBC, MC, SGR Omitted = 0
SM, RM, DSR Omitted = error
TEKSTBM Margin defaults

Reference Guide: pp. 37-39, pp. 40-48, p. 49, p. 51, pp. 54-60, p. 71.