|
|
1.1 root 1: .\"#! troff -Q -ms $1
2: .\" This is the "Xterm Control Sequences" document, written by
3: .\" Edward Moy
4: .\" Academic Computing Services
5: .\" University of California
6: .\" Berkeley, CA 94720
7: .\"
8: .\" [email protected]
9: .\" ucbvax!opal!edmoy
10: .\"
11: .\" Run this file through troff and use the -ms macro package.
12: .ND
13: .de St
14: .sp
15: .nr PD 0
16: .nr PI 1.5i
17: .nr VS 16
18: ..
19: .de Ed
20: .nr PD .3v
21: .nr VS 12
22: ..
23: .rm CH
24: .ds LH Xterm Control Sequences
25: .nr s 6*\n(PS/10
26: .ds L \s\nsBEL\s0
27: .ds E \s\nsESC\s0
28: .ds T \s\nsTAB\s0
29: .ds X \s\nsETX\s0
30: .ds N \s\nsENQ\s0
31: .ds e \s\nsETB\s0
32: .ds C \s\nsCAN\s0
33: .ds S \s\nsSUB\s0
34: .nr [W \w'\*L'u
35: .nr w \w'\*E'u
36: .if \nw>\n([W .nr [W \nw
37: .nr w \w'\*T'u
38: .if \nw>\n([W .nr [W \nw
39: .nr w \w'\*X'u
40: .if \nw>\n([W .nr [W \nw
41: .nr w \w'\*N'u
42: .if \nw>\n([W .nr [W \nw
43: .nr w \w'\*e'u
44: .if \nw>\n([W .nr [W \nw
45: .nr w \w'\*C'u
46: .if \nw>\n([W .nr [W \nw
47: .nr w \w'\*S'u
48: .if \nw>\n([W .nr [W \nw
49: .nr [W +\w'\|\|'u
50: .de []
51: .nr w \w'\\$2'
52: .nr H \\n([Wu-\\nwu
53: .nr h \\nHu/2u
54: .ds \\$1 \(br\v'-1p'\(br\v'1p'\h'\\nhu'\\$2\h'\\nHu-\\nhu'\(br\l'-\\n([Wu\(ul'\v'-1p'\(br\l'-\\n([Wu\(rn'\v'1p'\|
55: ..
56: .[] Et \v'-1p'\*X\v'1p'
57: .[] En \v'-1p'\*N\v'1p'
58: .[] Be \v'-1p'\*L\v'1p'
59: .[] Bs \v'-1p'\s\nsBS\s0\v'1p'
60: .[] Ta \v'-1p'\*T\v'1p'
61: .[] Lf \v'-1p'\s\nsLF\s0\v'1p'
62: .[] Vt \v'-1p'\s\nsVT\s0\v'1p'
63: .[] Ff \v'-1p'\s\nsFF\s0\v'1p'
64: .[] Cr \v'-1p'\s\nsCR\s0\v'1p'
65: .[] So \v'-1p'\s\nsSO\s0\v'1p'
66: .[] Si \v'-1p'\s\nsSI\s0\v'1p'
67: .[] Eb \v'-1p'\*e\v'1p'
68: .[] Ca \v'-1p'\*C\v'1p'
69: .[] Su \v'-1p'\*S\v'1p'
70: .[] Es \v'-1p'\*E\v'1p'
71: .[] Fs \v'-1p'\s\nsFS\s0\v'1p'
72: .[] Gs \v'-1p'\s\nsGS\s0\v'1p'
73: .[] Rs \v'-1p'\s\nsRS\s0\v'1p'
74: .[] Us \v'-1p'\s\nsUS\s0\v'1p'
75: .[] # #
76: .[] (( (
77: .[] ) )
78: .[] * *
79: .[] + +
80: .[] 0 0
81: .[] 1 1
82: .[] 2 2
83: .[] 3 3
84: .[] 4 4
85: .[] 5 5
86: .[] 6 6
87: .[] 7 7
88: .[] 8 8
89: .[] 9 9
90: .[] : :
91: .[] ; ;
92: .[] = =
93: .[] > >
94: .[] ? ?
95: .[] @ @
96: .[] A A
97: .[] cB B
98: .[] C C
99: .[] D D
100: .[] E E
101: .[] F F
102: .[] H H
103: .[] J J
104: .[] K K
105: .[] L L
106: .[] M M
107: .[] N N
108: .[] O O
109: .[] P P
110: .[] R R
111: .[] S S
112: .[] T T
113: .[] [[ [
114: .[] ] ]
115: .[] ` \`
116: .[] a a
117: .[] b b
118: .[] c c
119: .[] d d
120: .[] f f
121: .[] g g
122: .[] h h
123: .[] i i
124: .[] j j
125: .[] k k
126: .[] l l
127: .[] m m
128: .[] n n
129: .[] p p
130: .[] q q
131: .[] r r
132: .[] s s
133: .[] t t
134: .[] x x
135: .ds Cc \fIC\fP
136: .ds Ps \fIP\v'.3m'\h'-.2m'\s-2s\s0\v'-.3m'\fP
137: .ds Pm \fIP\v'.3m'\h'-.2m'\s-2m\s0\v'-.3m'\fP
138: .ds Pt \fIP\v'.3m'\h'-.2m'\s-2t\s0\v'-.3m'\fP
139: .ds Ix \fIx\fP
140: .ds Iy \fIy\fP
141: .ds Iw \fIw\fP
142: .ds Ih \fIh\fP
143: .ds Ir \fIr\fP
144: .ds Ic \fIc\fP
145: .nr LL 6.5i
146: .TL
147: Xterm Control Sequences
148: .am NP
149: .ds CF %
150: ..
151: .SH
152: Definitions
153: .IP \*(Cc
154: A single (required) character.
155: .IP \*(Ps
156: A single (usually optional) numeric parameter, composed of one of more digits.
157: .IP \*(Pm
158: A multiple numeric parameter composed of any number of single numeric
159: parameters, separated by \*; character(s).
160: .IP \*(Pt
161: A text parameter composed of printable characters.
162: .SH
163: VT102 Mode
164: .ds RH VT102 Mode
165: .LP
166: Most of these control sequences are standard VT102 control sequences.
167: There are, however, additional ones to provide control of
168: .I xterm
169: dependent functions, like the scrollbar or window size.
170: .St
171: .IP \\*(Be
172: Bell (Ctrl-G)
173: .IP \\*(Bs
174: Backspace (Ctrl-H)
175: .IP \\*(Ta
176: Horizontal Tab (Ctrl-I)
177: .IP \\*(Lf
178: Line Feed or New Line (Ctrl-J)
179: .IP \\*(Vt
180: Vertical Tab (Ctrl-K)
181: .IP \\*(Ff
182: Form Feed or New Page (Ctrl-L)
183: .IP \\*(Cr
184: Carriage Return (Ctrl-M)
185: .IP \\*(So
186: Shift Out (Ctrl-N) \(-> Switch to Alternate Character Set
187: .IP \\*(Si
188: Shift In (Ctrl-O) \(-> Switch to Standard Character Set
189: .IP \\*(Es\\*#\\*8
190: DEC Screen Alignment Test (DECALN)
191: .IP \\*(Es\\*(((\\*(Cc
192: Select G0 Character Set (SCS)
193: \*(Cc = \*0 \(-> Special Character and Line Drawing Set
194: \*(Cc = \*1 \(-> Alternate Character ROM Standard Set
195: \*(Cc = \*2 \(-> Alternate Character ROM Special Set
196: \*(Cc = \*A \(-> United Kingdom (UK)
197: \*(Cc = \*(cB \(-> United States (USASCII)
198: .IP \\*(Es\\*)\\*(Cc
199: Select G1 Character Set (SCS)
200: \*(Cc = \*0 \(-> Special Character and Line Drawing Set
201: \*(Cc = \*1 \(-> Alternate Character ROM Standard Set
202: \*(Cc = \*2 \(-> Alternate Character ROM Special Set
203: \*(Cc = \*A \(-> United Kingdom (UK)
204: \*(Cc = \*(cB \(-> United States (USASCII)
205: .IP \\*(Es\\**\\*(Cc
206: Select G2 Character Set (SCS)
207: \*(Cc = \*0 \(-> Special Character and Line Drawing Set
208: \*(Cc = \*1 \(-> Alternate Character ROM Standard Set
209: \*(Cc = \*2 \(-> Alternate Character ROM Special Set
210: \*(Cc = \*A \(-> United Kingdom (UK)
211: \*(Cc = \*(cB \(-> United States (USASCII)
212: .IP \\*(Es\\*+\\*(Cc
213: Select G3 Character Set (SCS)
214: \*(Cc = \*0 \(-> Special Character and Line Drawing Set
215: \*(Cc = \*1 \(-> Alternate Character ROM Standard Set
216: \*(Cc = \*2 \(-> Alternate Character ROM Special Set
217: \*(Cc = \*A \(-> United Kingdom (UK)
218: \*(Cc = \*(cB \(-> United States (USASCII)
219: .IP \\*(Es\\*7
220: Save Cursor (DECSC)
221: .IP \\*(Es\\*8
222: Restore Cursor (DECRC)
223: .IP \\*(Es\\*=
224: Application Keypad (DECPAM)
225: .IP \\*(Es\\*>
226: Normal Keypad (DECPNM)
227: .IP \\*(Es\\*D
228: Index (IND)
229: .IP \\*(Es\\*E
230: Next Line (NEL)
231: .IP \\*(Es\\*H
232: Tab Set (HTS)
233: .IP \\*(Es\\*M
234: Reverse Index (RI)
235: .IP \\*(Es\\*N
236: Single Shift Select of G2 Character Set (SS2)
237: .IP \\*(Es\\*O
238: Single Shift Select of G3 Character Set (SS3)
239: .IP \\*(Es\\*T\*(Ps\|\\*(Lf
240: Change Window Title to \*(Ps
241: .IP \\*(Es\\*([[\\*(Ps\|\\*@
242: Insert \*(Ps (Blank) Character(s) (default = 1) (ICH)
243: .IP \\*(Es\\*([[\\*(Ps\|\\*A
244: Cursor Up \*(Ps Times (default = 1) (CUU)
245: .IP \\*(Es\\*([[\\*(Ps\|\\*(cB
246: Cursor Down \*(Ps Times (default = 1) (CUD)
247: .IP \\*(Es\\*([[\\*(Ps\|\\*C
248: Cursor Forward \*(Ps Times (default = 1) (CUF)
249: .IP \\*(Es\\*([[\\*(Ps\|\\*D
250: Cursor Backward \*(Ps Times (default = 1) (CUB)
251: .IP \\*(Es\\*([[\\*(Ps\|\\*;\\*(Ps\|\\*H
252: Cursor Position [row;column] (default = [1,1]) (CUP)
253: .IP \\*(Es\\*([[\\*(Ps\|\\*J
254: Erase in Display (ED)
255: \*(Ps = \*0 \(-> Clear Below (default)
256: \*(Ps = \*1 \(-> Clear Above
257: \*(Ps = \*2 \(-> Clear All
258: .IP \\*(Es\\*([[\\*(Ps\|\\*K
259: Erase in Line (EL)
260: \*(Ps = \*0 \(-> Clear to Right (default)
261: \*(Ps = \*1 \(-> Clear to Left
262: \*(Ps = \*2 \(-> Clear All
263: .IP \\*(Es\\*([[\\*(Ps\|\\*L
264: Insert \*(Ps Line(s) (default = 1) (IL)
265: .IP \\*(Es\\*([[\\*(Ps\|\\*M
266: Delete \*(Ps Line(s) (default = 1) (DL)
267: .IP \\*(Es\\*([[\\*(Ps\|\\*P
268: Delete \*(Ps Character(s) (default = 1) (DCH)
269: .IP \\*(Es\\*([[\\*(Ps\|\\*c
270: Device Atrributes (DA1)
271: .IP \\*(Es\\*([[\\*(Ps\|\\*;\\*(Ps\|\\*f
272: Cursor Position [row;column] (default = [1,1]) (HVP)
273: .IP \\*(Es\\*([[\\*(Ps\|\\*g
274: Tab Clear
275: \*(Ps = \*0 \(-> Clear Current Column (default)
276: \*(Ps = \*3 \(-> Clear All
277: .IP \\*(Es\\*([[\\*(Ps\|\\*h
278: Mode Set (SET)
279: \*(Ps = \*4 \(-> Insert Mode (IRM)
280: \*(Ps = \*2\*0 \(-> Automatic Linefeed (LNM)
281: .IP \\*(Es\\*([[\\*(Ps\|\\*l
282: Mode Reset (RST)
283: \*(Ps = \*4 \(-> Insert Mode (IRM)
284: \*(Ps = \*2\*0 \(-> Automatic Linefeed (LNM)
285: .IP \\*(Es\\*([[\\*(Pm\|\\*m
286: Character Attributes (SGR)
287: \*(Ps = \*0 \(-> Normal (default)
288: \*(Ps = \*1 \(-> Blink (appears as Bold)
289: \*(Ps = \*4 \(-> Underscore
290: \*(Ps = \*5 \(-> Bold
291: \*(Ps = \*7 \(-> Inverse
292: .IP \\*(Es\\*([[\\*(Ps\|\\*n
293: Device Status Report (DSR)
294: \*(Ps = 5 \(-> Status Report \*(Es\*([[\*0\*n \(-> OK
295: \*(Ps = 6 \(-> Report Cursor Position (CPR) [row;column] as
296: \*(Es\*([[\*(Ir\|\*;\*(Ic\|\*R
297: .IP \\*(Es\\*([[\\*(Ps\|\\*;\\*(Ps\|\\*r
298: Set Scrolling Region [top;bottom] (default = full size of window) (DECSTBM)
299: .IP \\*(Es\\*([[\\*(Ps\|\\*x
300: Request Terminal Parameters (DECREQTPARM)
301: .IP \\*(Es\\*([[\\*?\\*E
302: Erase Status Line
303: .IP \\*(Es\\*([[\\*?\\*F
304: Return from Status Line
305: .IP \\*(Es\\*([[\\*?\\*H
306: Hide Status Line
307: .IP \\*(Es\\*([[\\*?\\*S
308: Show Status Line
309: .IP \\*(Es\\*([[\\*?\\*(Ps\|\\*T
310: Go To Column \*(Ps of Status Line
311: .IP \\*(Es\\*([[\\*?\\*(Ps\|\\*h
312: DEC Private Mode Set (DECSET)
313: \*(Ps = \*1 \(-> Application Cursor Keys (DECCKM)
314: \*(Ps = \*3 \(-> 132 Column Mode (DECCOLM)
315: \*(Ps = \*4 \(-> Smooth (Slow) Scroll (DECSCLM)
316: \*(Ps = \*5 \(-> Reverse Video (DECSCNM)
317: \*(Ps = \*6 \(-> Origin Mode (DECOM)
318: \*(Ps = \*7 \(-> Wraparound Mode (DECAWM)
319: \*(Ps = \*8 \(-> Auto-repeat Keys (DECARM)
320: \*(Ps = \*9 \(-> Send MIT Mouse Row & Column on Button Press
321: \*(Ps = \*3\*8 \(-> Enter TekTronix Mode (DECTEK)
322: \*(Ps = \*4\*0 \(-> Allow 80 \z\(<-\(-> 132 Mode
323: \*(Ps = \*4\*1 \(-> \fIcurses\fP(5) fix
324: \*(Ps = \*4\*4 \(-> Turn On Margin Bell
325: \*(Ps = \*4\*5 \(-> Reverse-wraparound Mode
326: \*(Ps = \*4\*6 \(-> Start Logging
327: \*(Ps = \*4\*7 \(-> Use Alternate Screen Buffer
328: \*(Ps = \*4\*8 \(-> Reverse Status Line
329: .IP \\*(Es\\*([[\\*?\\*(Ps\|\\*l
330: DEC Private Mode Reset (DECRST)
331: \*(Ps = \*1 \(-> Normal Cursor Keys (DECCKM)
332: \*(Ps = \*3 \(-> 80 Column Mode (DECCOLM)
333: \*(Ps = \*4 \(-> Jump (Fast) Scroll (DECSCLM)
334: \*(Ps = \*5 \(-> Normal Video (DECSCNM)
335: \*(Ps = \*6 \(-> Normal Cursor Mode (DECOM)
336: \*(Ps = \*7 \(-> No Wraparound Mode (DECAWM)
337: \*(Ps = \*8 \(-> No Auto-repeat Keys (DECARM)
338: \*(Ps = \*9 \(-> Don't Send MIT Mouse Row & Column on Button Press
339: \*(Ps = \*4\*0 \(-> Disallow 80 \z\(<-\(-> 132 Mode
340: \*(Ps = \*4\*1 \(-> No \fIcurses\fP(5) fix
341: \*(Ps = \*4\*4 \(-> Turn Off Margin Bell
342: \*(Ps = \*4\*5 \(-> No Reverse-wraparound Mode
343: \*(Ps = \*4\*6 \(-> Stop Logging
344: \*(Ps = \*4\*7 \(-> Use Normal Screen Buffer
345: \*(Ps = \*4\*8 \(-> Un-reverse Status Line
346: .IP \\*(Es\\*([[\\*?\\*(Ps\|\\*r
347: Restore DEC Private Mode
348: \*(Ps = \*1 \(-> Normal/Application Cursor Keys (DECCKM)
349: \*(Ps = \*3 \(-> 80/132 Column Mode (DECCOLM)
350: \*(Ps = \*4 \(-> Jump (Fast)/Smooth (Slow) Scroll (DECSCLM)
351: \*(Ps = \*5 \(-> Normal/Reverse Video (DECSCNM)
352: \*(Ps = \*6 \(-> Normal/Origin Cursor Mode (DECOM)
353: \*(Ps = \*7 \(-> No Wraparound/Wraparound Mode (DECAWM)
354: \*(Ps = \*8 \(-> Auto-repeat/No Auto-repeat Keys (DECARM)
355: \*(Ps = \*9 \(-> Don't Send/Send MIT Mouse Row & Column on Button Press
356: \*(Ps = \*4\*0 \(-> Disallow/Allow 80 \z\(<-\(-> 132 Mode
357: \*(Ps = \*4\*1 \(-> Off/On \fIcurses\fP(5) fix
358: \*(Ps = \*4\*4 \(-> Turn Off/On Margin Bell
359: \*(Ps = \*4\*5 \(-> No Reverse-wraparound/Reverse-wraparound Mode
360: \*(Ps = \*4\*6 \(-> Stop/Start Logging
361: \*(Ps = \*4\*7 \(-> Use Normal/Alternate Screen Buffer
362: \*(Ps = \*4\*8 \(-> Un-reverse/Reverse Status Line
363: .IP \\*(Es\\*([[\\*?\\*(Ps\|\\*s
364: Save DEC Private Mode
365: \*(Ps = \*1 \(-> Normal/Application Cursor Keys (DECCKM)
366: \*(Ps = \*3 \(-> 80/132 Column Mode (DECCOLM)
367: \*(Ps = \*4 \(-> Jump (Fast)/Smooth (Slow) Scroll (DECSCLM)
368: \*(Ps = \*5 \(-> Normal/Reverse Video (DECSCNM)
369: \*(Ps = \*6 \(-> Normal/Origin Cursor Mode (DECOM)
370: \*(Ps = \*7 \(-> No Wraparound/Wraparound Mode (DECAWM)
371: \*(Ps = \*8 \(-> Auto-repeat/No Auto-repeat Keys (DECARM)
372: \*(Ps = \*9 \(-> Don't Send/Send MIT Mouse Row & Column on Button Press
373: \*(Ps = \*4\*0 \(-> Disallow/Allow 80 \z\(<-\(-> 132 Mode
374: \*(Ps = \*4\*1 \(-> Off/On \fIcurses\fP(5) fix
375: \*(Ps = \*4\*4 \(-> Turn Off/On Margin Bell
376: \*(Ps = \*4\*5 \(-> No Reverse-wraparound/Reverse-wraparound Mode
377: \*(Ps = \*4\*6 \(-> Stop/Start Logging
378: \*(Ps = \*4\*7 \(-> Use Normal/Alternate Screen Buffer
379: \*(Ps = \*4\*8 \(-> Un-reverse/Reverse Status Line
380: .IP \\*(Es\\*]\\*(Ps\|\\*;\\*(Pt\|\\*(Be
381: Set Text Parameters
382: \*(Ps = \*0 \(-> Change Window Name and Title to \*(Pt
383: \*(Ps = \*1 \(-> Change Window Name to \*(Pt
384: \*(Ps = \*0 \(-> Change Window Title to \*(Pt
385: \*(Ps = \*4\*6 \(-> Change Log File to \*(Pt
386: .IP \\*(Es\\*c
387: Full Reset (RIS)
388: .Ed
389: .SH
390: Tektronix 4015 Mode
391: .ds RH Tektronix 4015 Mode
392: .LP
393: Most of these sequences are standard Tektronix 4015 control sequences.
394: The major features missing are the alternate (APL) character set and
395: the write-thru and defocused modes.
396: .St
397: .IP \\*(Be
398: Bell (Ctrl-G)
399: .IP \\*(Bs
400: Backspace (Ctrl-H)
401: .IP \\*(Ta
402: Horizontal Tab (Ctrl-I)
403: .IP \\*(Lf
404: Line Feed or New Line (Ctrl-J)
405: .IP \\*(Vt
406: Vertical Tab (Ctrl-K)
407: .IP \\*(Ff
408: Form Feed or New Page (Ctrl-L)
409: .IP \\*(Cr
410: Carriage Return (Ctrl-M)
411: .IP \\*(Es\\*(Et
412: Switch to VT102 Mode
413: .IP \\*(Es\\*(En
414: Return Terminal Status
415: .IP \\*(Es\\*(Lf
416: PAGE (Clear Screen)
417: .IP \\*(Es\\*(Eb
418: COPY (Save Tektronix Codes to File)
419: .IP \\*(Es\\*(Ca
420: Bypass Condition
421: .IP \\*(Es\\*(Su
422: GIN mode
423: .IP \\*(Es\\*(Fs
424: Special Point Plot Mode
425: .IP \\*(Es\\*(Gs
426: Graph Mode (same as \*(Gs)
427: .IP \\*(Es\\*(Rs
428: Incremental Plot Mode (same as \*(Rs)
429: .IP \\*(Es\\*(Us
430: Alpha Mode (same as \*(Us)
431: .IP \\*(Es\\*8
432: Select Large Character Set
433: .IP \\*(Es\\*9
434: Select #2 Character Set
435: .IP \\*(Es\\*:
436: Select #3 Character Set
437: .IP \\*(Es\\*;
438: Select Small Character Set
439: .IP \\*(Es\\*]\\*(Ps\|\\*;\\*(Pt\|\\*(Be
440: Set Text Parameters
441: \*(Ps = \*0 \(-> Change Window Name and Title to \*(Pt
442: \*(Ps = \*4\*6 \(-> Change Log File to \*(Pt
443: .IP \\*(Es\\*`
444: Normal Z Axis and Normal (solid) Vectors
445: .IP \\*(Es\\*a
446: Normal Z Axis and Dotted Line Vectors
447: .IP \\*(Es\\*b
448: Normal Z Axis and Dot-Dashed Vectors
449: .IP \\*(Es\\*c
450: Normal Z Axis and Short-Dashed Vectors
451: .IP \\*(Es\\*d
452: Normal Z Axis and Long-Dashed Vectors
453: .IP \\*(Es\\*h
454: Defocused Z Axis and Normal (solid) Vectors
455: .IP \\*(Es\\*i
456: Defocused Z Axis and Dotted Line Vectors
457: .IP \\*(Es\\*j
458: Defocused Z Axis and Dot-Dashed Vectors
459: .IP \\*(Es\\*k
460: Defocused Z Axis and Short-Dashed Vectors
461: .IP \\*(Es\\*l
462: Defocused Z Axis and Long-Dashed Vectors
463: .IP \\*(Es\\*p
464: Write-Thru Mode and Normal (solid) Vectors
465: .IP \\*(Es\\*q
466: Write-Thru Mode and Dotted Line Vectors
467: .IP \\*(Es\\*r
468: Write-Thru Mode and Dot-Dashed Vectors
469: .IP \\*(Es\\*s
470: Write-Thru Mode and Short-Dashed Vectors
471: .IP \\*(Es\\*t
472: Write-Thru Mode and Long-Dashed Vectors
473: .IP \\*(Fs
474: Point Plot Mode
475: .IP \\*(Gs
476: Graph Mode
477: .IP \\*(Rs
478: Incremental Plot Mode
479: .IP \\*(Us
480: Alpha Mode
481: .Ed
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.