root/foundation-apps/mxterm-maxx/ctlseqs.ms

Revision 8, 64.2 KB (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
1.\"#! troff -ms $1              -*- Nroff -*-
2.\" "Xterm Control Sequences" document
3.\" $XTermId: ctlseqs.ms,v 1.188 2008/04/20 22:24:36 tom Exp $
4.\"
5.\"
6.\" Copyright 1996-2007,2008 by Thomas E. Dickey
7.\"
8.\"                         All Rights Reserved
9.\"
10.\" Permission is hereby granted, free of charge, to any person obtaining a
11.\" copy of this software and associated documentation files (the
12.\" "Software"), to deal in the Software without restriction, including
13.\" without limitation the rights to use, copy, modify, merge, publish,
14.\" distribute, sublicense, and/or sell copies of the Software, and to
15.\" permit persons to whom the Software is furnished to do so, subject to
16.\" the following conditions:
17.\"
18.\" The above copyright notice and this permission notice shall be included
19.\" in all copies or substantial portions of the Software.
20.\"
21.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24.\" IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
25.\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26.\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27.\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28.\"
29.\" Except as contained in this notice, the name(s) of the above copyright
30.\" holders shall not be used in advertising or otherwise to promote the
31.\" sale, use or other dealings in this Software without prior written
32.\" authorization.
33.\"
34.\"
35.\" Copyright 1991, 1994 X Consortium
36.\"
37.\" Permission is hereby granted, free of charge, to any person obtaining
38.\" a copy of this software and associated documentation files (the
39.\" "Software"), to deal in the Software without restriction, including
40.\" without limitation the rights to use, copy, modify, merge, publish,
41.\" distribute, sublicense, and/or sell copies of the Software, and to
42.\" permit persons to whom the Software is furnished to do so, subject to
43.\" the following conditions:
44.\"
45.\" The above copyright notice and this permission notice shall be
46.\" included in all copies or substantial portions of the Software.
47.\"
48.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
49.\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
52.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
53.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
54.\" OTHER DEALINGS IN THE SOFTWARE.
55.\"
56.\" Except as contained in this notice, the name of the X Consortium shall
57.\" not be used in advertising or otherwise to promote the sale, use or
58.\" other dealings in this Software without prior written authorization
59.\" from the X Consortium.
60.\"
61.\" X Window System is a trademark of X Consortium, Inc.
62.\"
63.\" Originally written by Edward Moy, University of California,
64.\" Berkeley, edmoy@violet.berkeley.edu, for the X.V10R4 xterm.
65.\" The X Consortium staff has since updated it for X11.
66.\" Updated by Thomas E. Dickey for XFree86 3.2 - XFree86 4.3
67.\"
68.\" Run this file through troff and use the -ms macro package.
69.\"
70.if n .pl 9999v         \" no page breaks in nroff
71.ND
72.de St
73.sp
74.nr PD 0
75.nr PI 1.0i
76.nr VS 16
77..
78.de Ed
79.nr PD .3v
80.nr VS 12
81..
82.ds CH \" as nothing
83.ds LH Xterm Control Sequences
84.nr s 6*\n(PS/10
85.ds L \s\nsBEL\s0
86.ds E \s\nsESC\s0
87.ds T \s\nsTAB\s0
88.ds X \s\nsETX\s0
89.ds N \s\nsENQ\s0
90.ds e \s\nsETB\s0
91.ds C \s\nsCAN\s0
92.ds S \s\nsSUB\s0
93.\" space between chars
94.ie t .ds s \|
95.el .ds s " \"
96.nr [W \w'\*L'u
97.nr w \w'\*E'u
98.if \nw>\n([W .nr [W \nw
99.nr w \w'\*T'u
100.if \nw>\n([W .nr [W \nw
101.nr w \w'\*X'u
102.if \nw>\n([W .nr [W \nw
103.nr w \w'\*N'u
104.if \nw>\n([W .nr [W \nw
105.nr w \w'\*e'u
106.if \nw>\n([W .nr [W \nw
107.nr w \w'\*C'u
108.if \nw>\n([W .nr [W \nw
109.nr w \w'\*S'u
110.if \nw>\n([W .nr [W \nw
111.nr [W +\w'\|\|'u
112.de []
113.nr w \w'\\$2'
114.nr H \\n([Wu-\\nwu
115.nr h \\nHu/2u
116.\" do fancy box in troff
117.ie t .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'\*s
118.el .ds \\$1 \\$2\*s
119..
120.[] Et \v'-1p'\*X\v'1p'
121.[] En \v'-1p'\*N\v'1p'
122.[] Be \v'-1p'\*L\v'1p'
123.[] AP \v'-1p'\s\nsAPC\s0\v'1p'
124.[] Bs \v'-1p'\s\nsBS\s0\v'1p'
125.[] Cs \v'-1p'\s\nsCSI\s0\v'1p'
126.[] S2 \v'-1p'\s\nsSS2\s0\v'1p'
127.[] S3 \v'-1p'\s\nsSS3\s0\v'1p'
128.[] SS \v'-1p'\s\nsSOS\s0\v'1p'
129.[] Eg \v'-1p'\s\nsEPA\s0\v'1p'
130.[] Sg \v'-1p'\s\nsSPA\s0\v'1p'
131.[] Dc \v'-1p'\s\nsDCS\s0\v'1p'
132.[] Ht \v'-1p'\s\nsHTS\s0\v'1p'
133.[] ID \v'-1p'\s\nsIND\s0\v'1p'
134.[] Nl \v'-1p'\s\nsNEL\s0\v'1p'
135.[] Os \v'-1p'\s\nsOSC\s0\v'1p'
136.[] RI \v'-1p'\s\nsRI\s0\v'1p'
137.[] PM \v'-1p'\s\nsPM\s0\v'1p'
138.[] ST \v'-1p'\s\nsST\s0\v'1p'
139.[] Ta \v'-1p'\*T\v'1p'
140.[] Lf \v'-1p'\s\nsLF\s0\v'1p'
141.[] Vt \v'-1p'\s\nsVT\s0\v'1p'
142.[] Ff \v'-1p'\s\nsFF\s0\v'1p'
143.[] Cr \v'-1p'\s\nsCR\s0\v'1p'
144.[] So \v'-1p'\s\nsSO\s0\v'1p'
145.[] Sp \v'-1p'\s\nsSP\s0\v'1p'
146.[] Si \v'-1p'\s\nsSI\s0\v'1p'
147.[] Eb \v'-1p'\*e\v'1p'
148.[] Ca \v'-1p'\*C\v'1p'
149.[] Su \v'-1p'\*S\v'1p'
150.[] Es \v'-1p'\*E\v'1p'
151.[] Fs \v'-1p'\s\nsFS\s0\v'1p'
152.[] Gs \v'-1p'\s\nsGS\s0\v'1p'
153.[] Rs \v'-1p'\s\nsRS\s0\v'1p'
154.[] Us \v'-1p'\s\nsUS\s0\v'1p'
155.[] XX \v'-1p'\s\nsXX\s0\v'1p'
156.[] $ $
157.[] # #
158.[] % %
159.[] (( (
160.[] ) )
161.[] * *
162.[] + +
163.[] , ,
164.[] - -
165.[] . .
166.[] 0 0
167.[] 1 1
168.[] 2 2
169.[] 3 3
170.[] 4 4
171.[] 5 5
172.[] 6 6
173.[] 7 7
174.[] 8 8
175.[] 9 9
176.[] : :
177.[] ; ;
178.[] = =
179.[] / /
180.[] < <
181.[] > >
182.[] ? ?
183.[] @ @
184.[] A A
185.[] cB B
186.[] C C
187.[] D D
188.[] E E
189.[] F F
190.[] G G
191.[] H H
192.[] I I
193.[] J J
194.[] K K
195.[] L L
196.[] M M
197.[] N N
198.[] O O
199.[] P P
200.[] Q Q
201.[] R R
202.[] S S
203.[] T T
204.[] V V
205.[] W W
206.[] XX X
207.[] Y Y
208.[] Z Z
209.[] [[ [
210.[] ]] ]
211.[] bS \\e
212.[] { {
213.[] ] ]
214.[] & &
215.[] ^ ^
216.[] _ _
217.[] qu \&'
218.[] ` \`
219.[] a a
220.[] b b
221.[] c c
222.[] d d
223.[] f f
224.[] g g
225.[] h h
226.[] i i
227.[] j j
228.[] k k
229.[] l l
230.[] m m
231.[] n n
232.[] o o
233.[] p p
234.[] q q
235.[] r r
236.[] cs s
237.[] t t
238.[] u u
239.[] v v
240.[] w w
241.[] x x
242.[] y y
243.[] z z
244.[] | |
245.[] } }
246.[] ! !
247.[] c" \(lq
248.[] c~ ~
249.[] Sc \fIc\fP
250.ds Cc \fIC\fP
251.ds Cb \fIC\v'.3m'\h'-.2m'\s-2b\s0\v'-.3m'\fP
252.ds Cx \fIC\v'.3m'\h'-.2m'\s-2x\s0\v'-.3m'\fP
253.ds Cy \fIC\v'.3m'\h'-.2m'\s-2y\s0\v'-.3m'\fP
254.ds Pb \fIP\v'.3m'\h'-.2m'\s-2b\s0\v'-.3m'\fP
255.ds Pc \fIP\v'.3m'\h'-.2m'\s-2c\s0\v'-.3m'\fP
256.ds Pd \fIP\v'.3m'\h'-.2m'\s-2d\s0\v'-.3m'\fP
257.ds Pe \fIP\v'.3m'\h'-.2m'\s-2e\s0\v'-.3m'\fP
258.ds Pl \fIP\v'.3m'\h'-.2m'\s-2l\s0\v'-.3m'\fP
259.ds Pm \fIP\v'.3m'\h'-.2m'\s-2m\s0\v'-.3m'\fP
260.ds Pp \fIP\v'.3m'\h'-.2m'\s-2p\s0\v'-.3m'\fP
261.ds Pr \fIP\v'.3m'\h'-.2m'\s-2r\s0\v'-.3m'\fP
262.ds Ps \fIP\v'.3m'\h'-.2m'\s-2s\s0\v'-.3m'\fP
263.ds Pt \fIP\v'.3m'\h'-.2m'\s-2t\s0\v'-.3m'\fP
264.ds Pu \fIP\v'.3m'\h'-.2m'\s-2u\s0\v'-.3m'\fP
265.ds Pv \fIP\v'.3m'\h'-.2m'\s-2v\s0\v'-.3m'\fP
266.ds Ix \fIx\fP
267.ds Iy \fIy\fP
268.ds Iw \fIw\fP
269.ds Ih \fIh\fP
270.ds Ir \fIr\fP
271.ds Ic \fIc\fP
272.ie t .nr LL 6.5i
273.el .nr LL 72m
274.if n .na
275.TL
276Xterm Control Sequences
277.AU
278Edward Moy
279.AI
280University of California, Berkeley
281.sp
282Revised by
283.AU
284Stephen Gildea
285.AI
286X Consortium (1994)
287.AU
288Thomas Dickey
289.AI
290XFree86 Project (1996-2006)
291invisible-island.net (2006-2008)
292.AU
293.
294.am BT                  \" add page numbers after first page
295.ds CF %
296..
297.SH
298Definitions
299.IP \*(Sc
300The literal character \fIc\fP.
301.IP \*(Cc
302A single (required) character.
303.IP \*(Ps
304A single (usually optional) numeric parameter, composed of one of more digits.
305.IP \*(Pm
306A multiple numeric parameter composed of any number of single numeric
307parameters, separated by \*; character(s).
308Individual values for the parameters are listed with \*(Ps .
309.IP \*(Pt
310A text parameter composed of printable characters.
311.
312.SH
313C1 (8-Bit) Control Characters
314.ds RH C1 (8-Bit) Control Characters
315.LP
316The \fIxterm\fP program recognizes both 8-bit and 7-bit control characters.
317It generates 7-bit controls (by default) or 8-bit if S8C1T is enabled.
318The following pairs of 7-bit and 8-bit control characters are equivalent:
319.St
320.IP \\*(Es\\*D
321Index (\*(ID is 0x84)
322.IP \\*(Es\\*E
323Next Line (\*(Nl is 0x85)
324.IP \\*(Es\\*H
325Tab Set (\*(Ht is 0x88)
326.IP \\*(Es\\*M
327Reverse Index (\*(RI is 0x8d)
328.IP \\*(Es\\*N
329Single Shift Select of G2 Character Set (\*(S2 is 0x8e): affects next character only
330.IP \\*(Es\\*O
331Single Shift Select of G3 Character Set (\*(S3 is 0x8f): affects next character only
332.IP \\*(Es\\*P
333Device Control String (\*(Dc is 0x90)
334.IP \\*(Es\\*V
335Start of Guarded Area (\*(Sg is 0x96)
336.IP \\*(Es\\*W
337End of Guarded Area (\*(Eg is 0x97)
338.IP \\*(Es\\*(XX
339Start of String (\*(SS is 0x98)
340.IP \\*(Es\\*Z
341Return Terminal ID (DECID is 0x9a).  Obsolete form of \*(Cs\*c (DA).
342.IP \\*(Es\\*([[
343Control Sequence Introducer (\*(Cs is 0x9b)
344.IP \\*(Es\\*(bS
345String Terminator (\*(ST is 0x9c)
346.IP \\*(Es\\*(]]
347Operating System Command (\*(Os is 0x9d)
348.IP \\*(Es\\*^
349Privacy Message (\*(PM is 0x9e)
350.IP \\*(Es\\*_
351Application Program Command (\*(AP is 0x9f)
352.Ed
353.sp
354.LP
355These control characters are used in the vtXXX emulation.
356.
357.SH
358VT100 Mode
359.ds RH VT100 Mode
360.LP
361Most of these control sequences are standard VT102 control sequences,
362but there is support for later DEC VT terminals (i.e., VT220, VT320, VT420),
363as well as ISO 6429 and \fIaixterm\fP color controls.
364The only VT102 features not supported is auto-repeat,
365since the only way X provides for this will affect all windows.
366There are additional control sequences to provide
367\fIxterm-\fPdependent functions, such as the scrollbar or window size.
368Where the function is specified by DEC or ISO 6429, the code assigned
369to it is given in parentheses.  The escape codes to designate and invoke
370character sets are specified by ISO 2022; see that document for a
371discussion of character sets.
372.
373.St
374.\"
375.LP
376.B
377Single-character functions
378.\"
379.IP \\*(Be
380Bell (Ctrl-G)
381.
382.IP \\*(Bs
383Backspace (Ctrl-H)
384.
385.IP \\*(Cr
386Carriage Return (Ctrl-M)
387.
388.IP \\*(En
389Return Terminal Status (Ctrl-E).
390Default response is an empty string, but may be overridden
391by a resource \fBanswerbackString\fP.
392.
393.IP \\*(Ff
394Form Feed or New Page (NP) (Ctrl-L) same as LF
395.
396.IP \\*(Lf
397Line Feed or New Line (NL) (Ctrl-J)
398.
399.IP \\*(So
400Shift Out (Ctrl-N) \(-> Switch to Alternate Character Set: invokes the
401G1 character set.
402.
403.IP \\*(Sp
404Space.
405.
406.IP \\*(Ta
407Horizontal Tab (HT) (Ctrl-I)
408.
409.IP \\*(Vt
410Vertical Tab (Ctrl-K) same as LF
411.
412.IP \\*(Si
413Shift In (Ctrl-O) \(-> Switch to Standard Character Set: invokes the
414G0 character set (the default).
415.Ed
416.\"
417.\"
418.\"
419.St
420.LP
421.B
422Controls beginning with ESC (other than those where ESC is part of a 7-bit equivalent to 8-bit C1 controls), ordered by the final character(s).
423.\"
424.IP \\*(Es\\*(Sp\\*F
4257-bit controls (S7C1T).
426.
427.IP \\*(Es\\*(Sp\\*G
4288-bit controls (S8C1T).
429.
430.IP \\*(Es\\*(Sp\\*L
431Set ANSI conformance level 1 (dpANS X3.134.1).
432.
433.IP \\*(Es\\*(Sp\\*M
434Set ANSI conformance level 2 (dpANS X3.134.1).
435.
436.IP \\*(Es\\*(Sp\\*N
437Set ANSI conformance level 3 (dpANS X3.134.1).
438.
439.IP \\*(Es\\*#\\*3
440DEC double-height line, top half (DECDHL)
441.
442.IP \\*(Es\\*#\\*4
443DEC double-height line, bottom half (DECDHL)
444.
445.IP \\*(Es\\*#\\*5
446DEC single-width line (DECSWL)
447.
448.IP \\*(Es\\*#\\*6
449DEC double-width line (DECDWL)
450.
451.IP \\*(Es\\*#\\*8
452DEC Screen Alignment Test (DECALN)
453.
454.IP \\*(Es\\*%\\*@
455Select default character set, ISO 8859-1 (ISO 2022)
456.
457.IP \\*(Es\\*%\\*G
458Select UTF-8 character set (ISO 2022)
459.
460.IP \\*(Es\\*(((\\*(Cc
461Designate G0 Character Set (ISO 2022)
462.IP \\*(Es\\*)\\*(Cc
463Designate G1 Character Set (ISO 2022)
464.
465.IP \\*(Es\\**\\*(Cc
466Designate G2 Character Set (ISO 2022)
467.
468.IP \\*(Es\\*+\\*(Cc
469Designate G3 Character Set (ISO 2022)
470.br
471Final character \*(Cc for designating character sets
472(\*0, \*A and \*(cB apply to VT100 and up, the remainder to VT220 and up):
473  \*(Cc = \*0 \(-> DEC Special Character and Line Drawing Set
474  \*(Cc = \*A \(-> United Kingdom (UK)
475  \*(Cc = \*(cB \(-> United States (USASCII)
476  \*(Cc = \*4 \(-> Dutch
477  \*(Cc = \*C or \*5 \(-> Finnish
478  \*(Cc = \*R \(-> French
479  \*(Cc = \*Q \(-> French Canadian
480  \*(Cc = \*K \(-> German
481  \*(Cc = \*Y \(-> Italian
482  \*(Cc = \*E or \*6 \(-> Norwegian/Danish
483  \*(Cc = \*Z \(-> Spanish
484  \*(Cc = \*H or \*7 \(-> Swedish
485  \*(Cc = \*= \(-> Swiss
486.
487.IP \\*(Es\\*7
488Save Cursor (DECSC)
489.
490.IP \\*(Es\\*8
491Restore Cursor (DECRC)
492.
493.IP \\*(Es\\*=
494Application Keypad (DECPAM)
495.
496.IP \\*(Es\\*>
497Normal Keypad (DECPNM)
498.
499.IP \\*(Es\\*F
500Cursor to lower left corner of screen (if
501enabled by the \fBhpLowerleftBugCompat\fP resource).
502.
503.IP \\*(Es\\*c
504Full Reset (RIS)
505.
506.IP \\*(Es\\*l
507Memory Lock (per HP terminals).  Locks memory above the cursor.
508.
509.IP \\*(Es\\*m
510Memory Unlock (per HP terminals)
511.
512.IP \\*(Es\\*n
513Invoke the G2 Character Set as GL (LS2).
514.
515.IP \\*(Es\\*o
516Invoke the G3 Character Set as GL (LS3).
517.
518.IP \\*(Es\\*|
519Invoke the G3 Character Set as GR (LS3R).
520.
521.IP \\*(Es\\*}
522Invoke the G2 Character Set as GR (LS2R).
523.
524.IP \\*(Es\\*(c~
525Invoke the G1 Character Set as GR (LS1R).
526.Ed
527.
528.St
529.LP
530.B
531Application Program-Control functions
532.IP \\*(AP\\*(Pt\\*s\\*(ST
533\fIxterm\fP implements no \*(AP functions; \*(Pt is ignored.
534\*(Pt need not be printable characters.
535.Ed
536.
537.St
538.LP
539.B
540Device-Control functions
541.IP \\*(Dc\\*(Ps\\*;\\*(Ps\\*|\\*(Pt\\*s\\*(ST
542User-Defined Keys (DECUDK).
543The first parameter:
544  \*(Ps = \*0 \(-> Clear all UDK definitions before starting (default)
545  \*(Ps = \*1 \(-> Erase Below (default)
546.br
547The second parameter:
548  \*(Ps = \*0 \(-> Lock the keys (default)
549  \*(Ps = \*1 \(-> Do not lock.
550.br
551The third parameter is a ';'-separated list of strings denoting
552the key-code separated by a '/' from the hex-encoded key value.
553The key codes correspond to the DEC function-key codes (e.g., F6=17).
554.
555.IP \\*(Dc\\*$\\*q\\*(Pt\\*s\\*(ST
556Request Status String (DECRQSS).
557The string following the "q" is one of the following:
558  \*(c"\*q      \(-> DECSCA
559  \*(c"\*p      \(-> DECSCL
560  \*r           \(-> DECSTBM
561  \*m           \(-> SGR
562.br
563\fIxterm\fP responds with
564\*(Dc\*1\*$\*r\*(Pt\*s\*(ST
565for valid requests, replacing the \*(Pt with the corresponding \*(Cs
566string,
567or
568\*(Dc\*0\*$\*r\*(Pt\*s\*(ST
569for invalid requests.
570.
571.IP \\*(Dc\\*+\\*q\\*(Pt\\*s\\*(ST
572Request Termcap/Terminfo String (xterm, experimental).
573The string following the "q" is a list of names
574encoded in hexadecimal (2 digits per character)
575separated by \*;
576which correspond to termcap or terminfo key names.
577.br
578\fIxterm\fP responds with
579\*(Dc\*1\*+\*r\*(Pt\*s\*(ST
580for valid requests, adding to \*(Pt an \*=,
581and the value of the corresponding string that xterm would send,
582or
583\*(Dc\*0\*+\*r\*(Pt\*s\*(ST
584for invalid requests.
585The strings are encoded in hexadecimal (2 digits per character).
586.Ed
587.\"
588.St
589.LP
590.B
591Functions using \*(Cs, ordered by the final character(s)
592.IP \\*(Cs\\*(Ps\\*s\\*@
593Insert \*(Ps (Blank) Character(s) (default = 1) (ICH)
594.
595.IP \\*(Cs\\*(Ps\\*s\\*A
596Cursor Up \*(Ps Times (default = 1) (CUU)
597.
598.IP \\*(Cs\\*(Ps\\*s\\*(cB
599Cursor Down \*(Ps Times (default = 1) (CUD)
600.
601.IP \\*(Cs\\*(Ps\\*s\\*C
602Cursor Forward \*(Ps Times (default = 1) (CUF)
603.
604.IP \\*(Cs\\*(Ps\\*s\\*D
605Cursor Backward \*(Ps Times (default = 1) (CUB)
606.
607.IP \\*(Cs\\*(Ps\\*s\\*E
608Cursor Next Line \*(Ps Times (default = 1) (CNL)
609.
610.IP \\*(Cs\\*(Ps\\*s\\*F
611Cursor Preceding Line \*(Ps Times (default = 1) (CPL)
612.
613.IP \\*(Cs\\*(Ps\\*s\\*G
614Cursor Character Absolute  [column] (default = [row,1]) (CHA)
615.
616.IP \\*(Cs\\*(Ps\\*s\\*;\\*(Ps\\*s\\*H
617Cursor Position [row;column] (default = [1,1]) (CUP)
618.
619.IP \\*(Cs\\*(Ps\\*s\\*I
620Cursor Forward Tabulation \*(Ps tab stops (default = 1) (CHT)
621.
622.IP \\*(Cs\\*(Ps\\*s\\*J
623Erase in Display (ED)
624  \*(Ps = \*0 \(-> Erase Below (default)
625  \*(Ps = \*1 \(-> Erase Above
626  \*(Ps = \*2 \(-> Erase All
627  \*(Ps = \*3 \(-> Erase Saved Lines (xterm)
628.
629.IP \\*(Cs\\*?\\*(Ps\\*s\\*J
630Erase in Display (DECSED)
631  \*(Ps = \*0 \(-> Selective Erase Below (default)
632  \*(Ps = \*1 \(-> Selective Erase Above
633  \*(Ps = \*2 \(-> Selective Erase All
634.
635.IP \\*(Cs\\*(Ps\\*s\\*K
636Erase in Line (EL)
637  \*(Ps = \*0 \(-> Erase to Right (default)
638  \*(Ps = \*1 \(-> Erase to Left
639  \*(Ps = \*2 \(-> Erase All
640.
641.IP \\*(Cs\\*?\\*(Ps\\*s\\*K
642Erase in Line (DECSEL)
643  \*(Ps = \*0 \(-> Selective Erase to Right (default)
644  \*(Ps = \*1 \(-> Selective Erase to Left
645  \*(Ps = \*2 \(-> Selective Erase All
646.
647.IP \\*(Cs\\*(Ps\\*s\\*L
648Insert \*(Ps Line(s) (default = 1) (IL)
649.
650.IP \\*(Cs\\*(Ps\\*s\\*M
651Delete \*(Ps Line(s) (default = 1) (DL)
652.
653.IP \\*(Cs\\*(Ps\\*s\\*P
654Delete \*(Ps Character(s) (default = 1) (DCH)
655.
656.IP \\*(Cs\\*(Ps\\*s\\*S
657Scroll up \*(Ps lines (default = 1) (SU)
658.
659.IP \\*(Cs\\*(Ps\\*s\\*T
660Scroll down \*(Ps lines (default = 1) (SD)
661.
662.IP \\*(Cs\\*(Ps\\*s\\*;\\*(Ps\\*s\\*;\\*(Ps\\*s\\*;\\*(Ps\\*s\\*;\\*(Ps\\*s\\*T
663Initiate highlight mouse tracking.
664Parameters are [func;startx;starty;firstrow;lastrow].
665See the section \fBMouse Tracking\fP.
666.
667.IP \\*(Cs\\*(Ps\\*s\\*(XX
668Erase \*(Ps Character(s) (default = 1) (ECH)
669.
670.IP \\*(Cs\\*(Ps\\*s\\*Z
671Cursor Backward Tabulation \*(Ps tab stops (default = 1) (CBT)
672.
673.IP \\*(Cs\\*(Pm\\*s\\*`
674Character Position Absolute  [column] (default = [row,1]) (HPA)
675.
676.IP \\*(Cs\\*(Ps\\*s\\*b
677Repeat the preceding graphic character \*(Ps times (REP)
678.
679.IP \\*(Cs\\*(Ps\\*s\\*c
680Send Device Attributes (Primary DA)
681  \*(Ps = \*0 or omitted \(-> request attributes from terminal.
682The response depends on the \fBdecTerminalID\fP resource setting.
683  \(-> \*(Cs\*?\*1\*;\*2\*c (``VT100 with Advanced Video Option'')
684  \(-> \*(Cs\*?\*1\*;\*0\*c (``VT101 with No Options'')
685  \(-> \*(Cs\*?\*6\*c (``VT102'')
686  \(-> \*(Cs\*?\*6\*0\*;\*1\*;\*2\*;\*6\*;\*8\*;\*9\*;\*1\*5\*;\*c (``VT220'')
687.br
688The VT100-style response parameters do not mean anything by themselves.
689VT220 parameters do, telling the host what features the terminal supports:
690  \(-> \*1 132-columns
691  \(-> \*2 Printer
692  \(-> \*6 Selective erase
693  \(-> \*8 User-defined keys
694  \(-> \*9 National replacement character sets
695  \(-> \*1\*5 Technical characters
696  \(-> \*2\*2 ANSI color, e.g., VT525
697  \(-> \*2\*9 ANSI text locator (i.e., DEC Locator mode)
698.
699.IP \\*(Cs\\*>\\*(Ps\\*s\\*c
700Send Device Attributes (Secondary DA)
701  \*(Ps = \*0 or omitted \(-> request the terminal's identification code.
702The response depends on the \fBdecTerminalID\fP resource setting.
703It should apply only to VT220 and up, but \fIxterm\fP extends this to VT100.
704  \(-> \*(Cs\*s\*>\*(Pp\*s\*;\*(Pv\*s\*;\*(Pc\*s\*c
705.br
706where \*(Pp denotes the terminal type
707  \(-> \*0 (``VT100'')
708  \(-> \*1 (``VT220'')
709.br
710and \*(Pv is the firmware version (for \fIxterm\fP, this was originally
711the XFree86 patch number, starting with 95).
712In a DEC terminal, \*(Pc indicates the ROM cartridge
713registration number and is always zero.
714.
715.IP \\*(Cs\\*(Pm\\*s\\*d
716Line Position Absolute  [row] (default = [1,column]) (VPA)
717.
718.IP \\*(Cs\\*(Ps\\*s\\*;\\*(Ps\\*s\\*f
719Horizontal and Vertical Position [row;column] (default = [1,1]) (HVP)
720.
721.IP \\*(Cs\\*(Ps\\*s\\*g
722Tab Clear (TBC)
723  \*(Ps = \*0 \(-> Clear Current Column (default)
724  \*(Ps = \*3 \(-> Clear All
725.
726.IP \\*(Cs\\*(Pm\\*s\\*h
727Set Mode (SM)
728  \*(Ps = \*2 \(-> Keyboard Action Mode (AM)
729  \*(Ps = \*4 \(-> Insert Mode (IRM)
730  \*(Ps = \*1\*2 \(-> Send/receive (SRM)
731  \*(Ps = \*2\*0 \(-> Automatic Newline (LNM)
732.
733.IP \\*(Cs\\*?\\*(Pm\\*s\\*h
734DEC Private Mode Set (DECSET)
735  \*(Ps = \*1 \(-> Application Cursor Keys (DECCKM)
736  \*(Ps = \*2 \(-> Designate USASCII for character sets G0-G3 (DECANM),
737and set VT100 mode.
738  \*(Ps = \*3 \(-> 132 Column Mode (DECCOLM)
739  \*(Ps = \*4 \(-> Smooth (Slow) Scroll (DECSCLM)
740  \*(Ps = \*5 \(-> Reverse Video (DECSCNM)
741  \*(Ps = \*6 \(-> Origin Mode (DECOM)
742  \*(Ps = \*7 \(-> Wraparound Mode (DECAWM)
743  \*(Ps = \*8 \(-> Auto-repeat Keys (DECARM)
744  \*(Ps = \*9 \(-> Send Mouse X & Y on button press.
745See the section \fBMouse Tracking\fP.
746  \*(Ps = \*1\*0 \(-> Show toolbar (rxvt)
747  \*(Ps = \*1\*2 \(-> Start Blinking Cursor (att610)
748  \*(Ps = \*1\*8 \(-> Print form feed (DECPFF)
749  \*(Ps = \*1\*9 \(-> Set print extent to full screen (DECPEX)
750  \*(Ps = \*2\*5 \(-> Show Cursor (DECTCEM)
751  \*(Ps = \*3\*0 \(-> Show scrollbar (rxvt).
752  \*(Ps = \*3\*5 \(-> Enable font-shifting functions (rxvt).
753  \*(Ps = \*3\*8 \(-> Enter Tektronix Mode (DECTEK)
754  \*(Ps = \*4\*0 \(-> Allow 80 \z\(<-\(-> 132 Mode
755  \*(Ps = \*4\*1 \(-> \fImore\fP(1) fix (see \fBcurses\fP resource)
756  \*(Ps = \*4\*2 \(-> Enable Nation Replacement Character sets (DECNRCM)
757  \*(Ps = \*4\*4 \(-> Turn On Margin Bell
758  \*(Ps = \*4\*5 \(-> Reverse-wraparound Mode
759  \*(Ps = \*4\*6 \(-> Start Logging
760(normally disabled by a compile-time option)
761  \*(Ps = \*4\*7 \(-> Use Alternate Screen Buffer (unless
762disabled by the \fBtiteInhibit\fP resource)
763  \*(Ps = \*6\*6 \(-> Application keypad (DECNKM)
764  \*(Ps = \*6\*7 \(-> Backarrow key sends backspace (DECBKM)
765  \*(Ps = \*1\*0\*0\*0 \(-> Send Mouse X & Y on button press and release.
766See the section \fBMouse Tracking\fP.
767  \*(Ps = \*1\*0\*0\*1 \(-> Use Hilite Mouse Tracking.
768  \*(Ps = \*1\*0\*0\*2 \(-> Use Cell Motion Mouse Tracking.
769  \*(Ps = \*1\*0\*0\*3 \(-> Use All Motion Mouse Tracking.
770  \*(Ps = \*1\*0\*0\*4 \(-> Send FocusIn/FocusOut events.
771  \*(Ps = \*1\*0\*1\*0 \(-> Scroll to bottom on tty output (rxvt).
772  \*(Ps = \*1\*0\*1\*1 \(-> Scroll to bottom on key press (rxvt).
773  \*(Ps = \*1\*0\*3\*4 \(-> Interpret "meta" key, sets eighth bit.
774(enables the \fBeightBitInput\fP resource).
775  \*(Ps = \*1\*0\*3\*5 \(-> Enable special modifiers for Alt and NumLock keys
776(enables the \fBnumLock\fP resource).
777  \*(Ps = \*1\*0\*3\*6 \(-> Send ESC when Meta modifies a key
778(enables the \fBmetaSendsEscape\fP resource).
779  \*(Ps = \*1\*0\*3\*7 \(-> Send DEL from the editing-keypad Delete key
780  \*(Ps = \*1\*0\*3\*9 \(-> Send ESC when Alt modifies a key
781(enables the \fBaltSendsEscape\fP resource).
782  \*(Ps = \*1\*0\*4\*0 \(-> Keep selection even if not highlighted
783(enables the \fBkeepSelection\fP resource).
784  \*(Ps = \*1\*0\*4\*1 \(-> Use the CLIPBOARD selection
785(enables the \fBselectToClipboard\fP resource).
786  \*(Ps = \*1\*0\*4\*2 \(-> Enable Urgency window manager hint when Control-G is received
787(enables the \fBbellIsUrgent\fP resource).
788  \*(Ps = \*1\*0\*4\*3 \(-> Enable raising of the window when Control-G is received
789(enables the \fBpopOnBell\fP resource).
790  \*(Ps = \*1\*0\*4\*7 \(-> Use Alternate Screen Buffer (unless
791disabled by the \fBtiteInhibit\fP resource)
792  \*(Ps = \*1\*0\*4\*8 \(-> Save cursor as in DECSC (unless
793disabled by the \fBtiteInhibit\fP resource)
794  \*(Ps = \*1\*0\*4\*9 \(-> Save cursor as in DECSC
795and use Alternate Screen Buffer, clearing it first (unless
796disabled by the \fBtiteInhibit\fP resource).
797This combines the effects of the \*1\*0\*4\*7 and \*1\*0\*4\*8 modes.
798Use this with terminfo-based applications rather than the \*4\*7 mode.
799  \*(Ps = \*1\*0\*5\*0 \(-> Set terminfo/termcap function-key mode.
800  \*(Ps = \*1\*0\*5\*1 \(-> Set Sun function-key mode.
801  \*(Ps = \*1\*0\*5\*2 \(-> Set HP function-key mode.
802  \*(Ps = \*1\*0\*5\*3 \(-> Set SCO function-key mode.
803  \*(Ps = \*1\*0\*6\*0 \(-> Set legacy keyboard emulation (X11R6).
804  \*(Ps = \*1\*0\*6\*1 \(-> Set VT220 keyboard emulation.
805  \*(Ps = \*2\*0\*0\*4 \(-> Set bracketed paste mode.
806.
807.IP \\*(Cs\\*(Pm\\*s\\*i
808Media Copy (MC)
809  \*(Ps = \*0 \(-> Print screen (default)
810  \*(Ps = \*4 \(-> Turn off printer controller mode
811  \*(Ps = \*5 \(-> Turn on printer controller mode
812.
813.IP \\*(Cs\\*?\\*(Pm\\*s\\*i
814Media Copy (MC, DEC-specific)
815  \*(Ps = \*1 \(-> Print line containing cursor
816  \*(Ps = \*4 \(-> Turn off autoprint mode
817  \*(Ps = \*5 \(-> Turn on autoprint mode
818  \*(Ps = \*1 \*0 \(-> Print composed display, ignores DECPEX
819  \*(Ps = \*1 \*1 \(-> Print all pages
820.
821.IP \\*(Cs\\*(Pm\\*s\\*l
822Reset Mode (RM)
823  \*(Ps = \*2 \(-> Keyboard Action Mode (AM)
824  \*(Ps = \*4 \(-> Replace Mode (IRM)
825  \*(Ps = \*1\*2 \(-> Send/receive (SRM)
826  \*(Ps = \*2\*0 \(-> Normal Linefeed (LNM)
827.
828.IP \\*(Cs\\*?\\*(Pm\\*s\\*l
829DEC Private Mode Reset (DECRST)
830  \*(Ps = \*1 \(-> Normal Cursor Keys (DECCKM)
831  \*(Ps = \*2 \(-> Designate VT52 mode (DECANM).
832  \*(Ps = \*3 \(-> 80 Column Mode (DECCOLM)
833  \*(Ps = \*4 \(-> Jump (Fast) Scroll (DECSCLM)
834  \*(Ps = \*5 \(-> Normal Video (DECSCNM)
835  \*(Ps = \*6 \(-> Normal Cursor Mode (DECOM)
836  \*(Ps = \*7 \(-> No Wraparound Mode (DECAWM)
837  \*(Ps = \*8 \(-> No Auto-repeat Keys (DECARM)
838  \*(Ps = \*9 \(-> Don't send Mouse X & Y on button press
839  \*(Ps = \*1\*0 \(-> Hide toolbar (rxvt)
840  \*(Ps = \*1\*2 \(-> Stop Blinking Cursor (att610)
841  \*(Ps = \*1\*8 \(-> Don't print form feed (DECPFF)
842  \*(Ps = \*1\*9 \(-> Limit print to scrolling region (DECPEX)
843  \*(Ps = \*2\*5 \(-> Hide Cursor (DECTCEM)
844  \*(Ps = \*3\*0 \(-> Don't show scrollbar (rxvt).
845  \*(Ps = \*3\*5 \(-> Disable font-shifting functions (rxvt).
846  \*(Ps = \*4\*0 \(-> Disallow 80 \z\(<-\(-> 132 Mode
847  \*(Ps = \*4\*1 \(-> No \fImore\fP(1) fix (see \fBcurses\fP resource)
848  \*(Ps = \*4\*2 \(-> Disable Nation Replacement Character sets (DECNRCM)
849  \*(Ps = \*4\*4 \(-> Turn Off Margin Bell
850  \*(Ps = \*4\*5 \(-> No Reverse-wraparound Mode
851  \*(Ps = \*4\*6 \(-> Stop Logging
852(normally disabled by a compile-time option)
853  \*(Ps = \*4\*7 \(-> Use Normal Screen Buffer
854  \*(Ps = \*6\*6 \(-> Numeric keypad (DECNKM)
855  \*(Ps = \*6\*7 \(-> Backarrow key sends delete (DECBKM)
856  \*(Ps = \*1\*0\*0\*0 \(-> Don't send Mouse X & Y on button press and
857release.
858See the section \fBMouse Tracking\fP.
859  \*(Ps = \*1\*0\*0\*1 \(-> Don't use Hilite Mouse Tracking.
860  \*(Ps = \*1\*0\*0\*2 \(-> Don't use Cell Motion Mouse Tracking.
861  \*(Ps = \*1\*0\*0\*3 \(-> Don't use All Motion Mouse Tracking.
862  \*(Ps = \*1\*0\*0\*4 \(-> Don't send FocusIn/FocusOut events.
863  \*(Ps = \*1\*0\*1\*0 \(-> Don't scroll to bottom on tty output (rxvt).
864  \*(Ps = \*1\*0\*1\*1 \(-> Don't scroll to bottom on key press (rxvt).
865  \*(Ps = \*1\*0\*3\*4 \(-> Don't interpret "meta" key
866(disables the \fBeightBitInput\fP resource).
867  \*(Ps = \*1\*0\*3\*5 \(-> Disable special modifiers for Alt and NumLock keys
868(disables the \fBnumLock\fP resource).
869  \*(Ps = \*1\*0\*3\*6 \(-> Don't send ESC when Meta modifies a key
870(disables the \fBmetaSendsEscape\fP resource).
871  \*(Ps = \*1\*0\*3\*7 \(-> Send VT220 Remove from the editing-keypad Delete key
872  \*(Ps = \*1\*0\*3\*9 \(-> Don't send ESC when Alt modifies a key
873(disables the \fBaltSendsEscape\fP resource).
874  \*(Ps = \*1\*0\*4\*0 \(-> Do not keep selection when not highlighted
875(disables the \fBkeepSelection\fP resource).
876  \*(Ps = \*1\*0\*4\*1 \(-> Use the PRIMARY selection.
877(disables the \fBselectToClipboard\fP resource).
878  \*(Ps = \*1\*0\*4\*2 \(-> Disable Urgency window manager hint when Control-G is received
879(disables the \fBbellIsUrgent\fP resource).
880  \*(Ps = \*1\*0\*4\*3 \(-> Disable raising of the window when Control-G is received
881(disables the \fBpopOnBell\fP resource).
882  \*(Ps = \*1\*0\*4\*7 \(-> Use Normal Screen Buffer, clearing screen
883first if in the Alternate Screen (unless
884disabled by the \fBtiteInhibit\fP resource)
885  \*(Ps = \*1\*0\*4\*8 \(-> Restore cursor as in DECRC (unless
886disabled by the \fBtiteInhibit\fP resource)
887  \*(Ps = \*1\*0\*4\*9 \(-> Use Normal Screen Buffer and restore cursor
888as in DECRC (unless
889disabled by the \fBtiteInhibit\fP resource).
890This combines the effects of the \*1\*0\*4\*7 and \*1\*0\*4\*8 modes.
891Use this with terminfo-based applications rather than the \*4\*7 mode.
892  \*(Ps = \*1\*0\*5\*0 \(-> Reset terminfo/termcap function-key mode.
893  \*(Ps = \*1\*0\*5\*1 \(-> Reset Sun function-key mode.
894  \*(Ps = \*1\*0\*5\*2 \(-> Reset HP function-key mode.
895  \*(Ps = \*1\*0\*5\*3 \(-> Reset SCO function-key mode.
896  \*(Ps = \*1\*0\*6\*0 \(-> Reset legacy keyboard emulation (X11R6).
897  \*(Ps = \*1\*0\*6\*1 \(-> Reset keyboard emulation to Sun/PC style.
898  \*(Ps = \*2\*0\*0\*4 \(-> Reset bracketed paste mode.
899.
900.IP \\*(Cs\\*(Pm\\*s\\*m
901Character Attributes (SGR)
902  \*(Ps = \*0 \(-> Normal (default)
903  \*(Ps = \*1 \(-> Bold
904  \*(Ps = \*4 \(-> Underlined
905  \*(Ps = \*5 \(-> Blink (appears as Bold)
906  \*(Ps = \*7 \(-> Inverse
907  \*(Ps = \*8 \(-> Invisible, i.e., hidden (VT300)
908  \*(Ps = \*2\*2 \(-> Normal (neither bold nor faint)
909  \*(Ps = \*2\*4 \(-> Not underlined
910  \*(Ps = \*2\*5 \(-> Steady (not blinking)
911  \*(Ps = \*2\*7 \(-> Positive (not inverse)
912  \*(Ps = \*2\*8 \(-> Visible, i.e., not hidden (VT300)
913  \*(Ps = \*3\*0 \(-> Set foreground color to Black
914  \*(Ps = \*3\*1 \(-> Set foreground color to Red
915  \*(Ps = \*3\*2 \(-> Set foreground color to Green
916  \*(Ps = \*3\*3 \(-> Set foreground color to Yellow
917  \*(Ps = \*3\*4 \(-> Set foreground color to Blue
918  \*(Ps = \*3\*5 \(-> Set foreground color to Magenta
919  \*(Ps = \*3\*6 \(-> Set foreground color to Cyan
920  \*(Ps = \*3\*7 \(-> Set foreground color to White
921  \*(Ps = \*3\*9 \(-> Set foreground color to default (original)
922  \*(Ps = \*4\*0 \(-> Set background color to Black
923  \*(Ps = \*4\*1 \(-> Set background color to Red
924  \*(Ps = \*4\*2 \(-> Set background color to Green
925  \*(Ps = \*4\*3 \(-> Set background color to Yellow
926  \*(Ps = \*4\*4 \(-> Set background color to Blue
927  \*(Ps = \*4\*5 \(-> Set background color to Magenta
928  \*(Ps = \*4\*6 \(-> Set background color to Cyan
929  \*(Ps = \*4\*7 \(-> Set background color to White
930  \*(Ps = \*4\*9 \(-> Set background color to default (original).
931.sp
932If 16-color support is compiled, the following apply.
933Assume that \fIxterm\fP's resources
934are set so that the ISO color codes are the first 8 of a set of 16.
935Then the \fIaixterm\fP colors are the bright versions of the ISO colors:
936  \*(Ps = \*9\*0 \(-> Set foreground color to Black
937  \*(Ps = \*9\*1 \(-> Set foreground color to Red
938  \*(Ps = \*9\*2 \(-> Set foreground color to Green
939  \*(Ps = \*9\*3 \(-> Set foreground color to Yellow
940  \*(Ps = \*9\*4 \(-> Set foreground color to Blue
941  \*(Ps = \*9\*5 \(-> Set foreground color to Magenta
942  \*(Ps = \*9\*6 \(-> Set foreground color to Cyan
943  \*(Ps = \*9\*7 \(-> Set foreground color to White
944  \*(Ps = \*1\*0\*0 \(-> Set background color to Black
945  \*(Ps = \*1\*0\*1 \(-> Set background color to Red
946  \*(Ps = \*1\*0\*2 \(-> Set background color to Green
947  \*(Ps = \*1\*0\*3 \(-> Set background color to Yellow
948  \*(Ps = \*1\*0\*4 \(-> Set background color to Blue
949  \*(Ps = \*1\*0\*5 \(-> Set background color to Magenta
950  \*(Ps = \*1\*0\*6 \(-> Set background color to Cyan
951  \*(Ps = \*1\*0\*7 \(-> Set background color to White
952.sp
953If \fIxterm\fP is compiled with the 16-color support disabled, it supports
954the following, from \fIrxvt\fP:
955  \*(Ps = \*1\*0\*0 \(-> Set foreground and background color to default
956.sp
957If 88- or 256-color support is compiled, the following apply.
958  \*(Ps = \*3\*8 ; \*5 ; \*(Ps \(-> Set foreground color to the second \*(Ps
959  \*(Ps = \*4\*8 ; \*5 ; \*(Ps \(-> Set background color to the second \*(Ps
960.sp
961.
962.IP \\*(Cs\\*>\\*(Ps\\*;\\*(Ps\\*s\\*m
963Set or reset resource-values used by \fIxterm\fP to decide whether to
964construct escape sequences holding information about the modifiers
965pressed with a given key.
966The first parameter identifies the resource to set/reset.
967The second parameter is the value to assign to the resource.
968If the second parameter is omitted, the resource is reset to its initial value.
969  \(-> \*1 modifyCursorKeys
970  \(-> \*2 modifyFunctionKeys
971  \(-> \*4 modifyOtherKeys
972.br
973If no parameters are given, all resources are reset to their initial values.
974.
975.IP \\*(Cs\\*(Ps\\*s\\*n
976Device Status Report (DSR)
977  \*(Ps = \*5 \(-> Status Report \*(Cs\*0\*n (``OK'')
978  \*(Ps = \*6 \(-> Report Cursor Position (CPR) [row;column] as
979.br
980\*(Cs\*(Ir\*s\*;\*(Ic\*s\*R
981.
982.IP \\*(Cs\\*>\\*(Ps\\*s\\*n
983Disable modifiers which may be enabled via the
984\*(Cs\*>\*(Ps\*;\*(Ps\*s\*m
985sequence.
986This corresponds to a resource value of "-1", which cannot be set with
987the other sequence.
988The parameter identifies the resource to be disabled:
989  \(-> \*1 modifyCursorKeys
990  \(-> \*2 modifyFunctionKeys
991  \(-> \*4 modifyOtherKeys
992If the parameter is omitted, \fBmodifyFunctionKeys\fP is disabled.
993When \fBmodifyFunctionKeys\fP is disabled, \fIxterm\fP uses the
994modifier keys to make an extended sequence of functions rather
995than adding a parameter to each function key to denote the modifiers.
996.
997.IP \\*(Cs\\*?\\*(Ps\\*s\\*n
998Device Status Report (DSR, DEC-specific)
999  \*(Ps = \*6 \(-> Report Cursor Position (CPR) [row;column] as
1000\*(Cs\*?\*(Ir\*s\*;\*(Ic\*s\*R
1001(assumes page is zero).
1002  \*(Ps = \*1\*5 \(-> Report Printer status as
1003\*(Cs\*?\*1\*0\*s\*n (ready)
1004or
1005\*(Cs\*?\*1\*1\*s\*n (not ready)
1006  \*(Ps = \*2\*5 \(-> Report UDK status as
1007\*(Cs\*?\*2\*0\*s\*n (unlocked)
1008or
1009\*(Cs\*?\*2\*1\*s\*n (locked)
1010  \*(Ps = \*2\*6 \(-> Report Keyboard status as
1011.br
1012\*(Cs\*?\*2\*7\*s\*;\*s\*1\*s\*;\*s\*0\*s\*;\*s\*0\*s\*n (North American)
1013.br
1014The last two parameters apply to VT400 & up, and denote keyboard ready and LK01 respectively.
1015  \*(Ps = \*5\*3 \(-> Report Locator status as
1016.br
1017\*(Cs\*?\*5\*3\*s\*n Locator available, if compiled-in, or
1018.br
1019\*(Cs\*?\*5\*0\*s\*n No Locator, if not.
1020.
1021.IP \\*(Cs\\*>\\*(Ps\\*s\\*p
1022Set resource value \fIpointerMode\fP,
1023used by \fIxterm\fP to decide whether to
1024hide the pointer cursor as the user types.
1025Valid values for the parameter:
1026  \*(Ps = \*0 \(-> never hide the pointer
1027  \*(Ps = \*1 \(-> hide if the mouse tracking mode is not enabled
1028  \*(Ps = \*2 \(-> always hide the pointer
1029If no parameter is given, \fIxterm\fP uses the default,
1030which is \*1.
1031.
1032.IP \\*(Cs\\*!\\*p
1033Soft terminal reset (DECSTR)
1034.
1035.IP \\*(Cs\\*(Ps\\*s\\*;\\*(Ps\\*s\\*(c"\\*p
1036Set conformance level (DECSCL)
1037Valid values for the first parameter:
1038  \*(Ps = \*6\*1 \(-> VT100
1039  \*(Ps = \*6\*2 \(-> VT200
1040  \*(Ps = \*6\*3 \(-> VT300
1041.br
1042Valid values for the second parameter:
1043  \*(Ps = \*0 \(-> 8-bit controls
1044  \*(Ps = \*1 \(-> 7-bit controls (always set for VT100)
1045  \*(Ps = \*2 \(-> 8-bit controls
1046.
1047.IP \\*(Cs\\*(Ps\\*s\\*(c"\\*q
1048Select character protection attribute (DECSCA).
1049Valid values for the parameter:
1050  \*(Ps = \*0 \(-> DECSED and DECSEL can erase (default)
1051  \*(Ps = \*1 \(-> DECSED and DECSEL cannot erase
1052  \*(Ps = \*2 \(-> DECSED and DECSEL can erase
1053.
1054.IP \\*(Cs\\*(Ps\\*s\\*;\\*(Ps\\*s\\*r
1055Set Scrolling Region [top;bottom] (default = full size of window) (DECSTBM)
1056.
1057.IP \\*(Cs\\*?\\*(Pm\\*s\\*r
1058Restore DEC Private Mode Values.  The value of \*(Ps previously saved is
1059restored.  \*(Ps values are the same as for DECSET.
1060.
1061.IP \\*(Cs\\*(Pt\\*;\\*(Pl\\*;\\*(Pb\\*;\\*(Pr\\*;\\*(Ps\\*$\\*r
1062Change Attributes in Rectangular Area (DECCARA).
1063  \*(Pt\*;\*(Pl\*;\*(Pb\*;\*(Pr denotes the rectangle.
1064  \*(Ps denotes the SGR attributes to change: 0, 1, 4, 5, 7
1065.
1066.IP \\*(Cs\\*(cs
1067Save cursor (ANSI.SYS)
1068.
1069.IP \\*(Cs\\*?\\*(Pm\\*s\\*(cs
1070Save DEC Private Mode Values.  \*(Ps values are the same as for DECSET.
1071.
1072.IP \\*(Cs\\*(Ps\\*s\\*;\\*(Ps\\*s\\*;\\*(Ps\\*s\\*t
1073Window manipulation (from \fIdtterm\fP, as well as extensions).
1074These controls may be disabled using the \fIallowWindowOps\fP resource.
1075Valid values for the first (and any additional parameters) are:
1076  \*(Ps = \*1 \(-> De-iconify window.
1077  \*(Ps = \*2 \(-> Iconify window.
1078  \*(Ps = \*3 ; \fIx ; y\fP \(-> Move window to [x, y].
1079  \*(Ps = \*4 ; \fIheight ; width\fP \(-> Resize the \fIxterm\fP window to height and width in pixels.
1080  \*(Ps = \*5 \(-> Raise the \fIxterm\fP window to the front of the stacking order.
1081  \*(Ps = \*6 \(-> Lower the \fIxterm\fP window to the bottom of the stacking order.
1082  \*(Ps = \*7 \(-> Refresh the \fIxterm\fP window.
1083  \*(Ps = \*8 ; \fIheight ; width\fP \(-> Resize the text area to [height;width] in characters.
1084  \*(Ps = \*9 ; \*0 \(-> Restore maximized window.
1085  \*(Ps = \*9 ; \*1 \(-> Maximize window (i.e., resize to screen size).
1086  \*(Ps = \*1\*1 \(-> Report \fIxterm\fP window state.
1087If the \fIxterm\fP window is open (non-iconified), it returns \*(Cs\*1\*t.
1088If the \fIxterm\fP window is iconified, it returns \*(Cs\*2\*t.
1089  \*(Ps = \*1\*3 \(-> Report \fIxterm\fP window position as
1090\*(Cs\*3\*;\*(Ix\*;\*(Iy\*t
1091  \*(Ps = \*1\*4 \(-> Report \fIxterm\fP window in pixels as
1092\*(Cs\*s\*4\*s\*;\*s\fIheight\fP\*s\*;\*s\fIwidth\fP\*s\*t
1093  \*(Ps = \*1\*8 \(-> Report the size of the text area in characters as
1094\*(Cs\*s\*8\*s\*;\*s\fIheight\fP\*s\*;\*s\fIwidth\fP\*s\*t
1095  \*(Ps = \*1\*9 \(-> Report the size of the screen in characters as
1096\*(Cs\*s\*9\*s\*;\*s\fIheight\fP\*s\*;\*s\fIwidth\fP\*s\*t
1097  \*(Ps = \*2\*0 \(-> Report \fIxterm\fP window's icon label as
1098\*(Os\*s\*L\*s\fIlabel\fP\*s\*(ST
1099  \*(Ps = \*2\*1 \(-> Report \fIxterm\fP window's title as
1100\*(Os\*s\*l\*s\fItitle\fP\*s\*(ST
1101  \*(Ps >= \*2\*4 \(-> Resize to \*(Ps lines (DECSLPP)
1102.
1103.IP \\*(Cs\\*(Pt\\*;\\*(Pl\\*;\\*(Pb\\*;\\*(Pr\\*;\\*(Ps\\*$\\*t
1104Reverse Attributes in Rectangular Area (DECRARA).
1105  \*(Pt\*;\*(Pl\*;\*(Pb\*;\*(Pr denotes the rectangle.
1106  \*(Ps denotes the attributes to reverse. 1, 4, 5, 7
1107.
1108.IP \\*(Cs\\*u
1109Save cursor (ANSI.SYS)
1110.
1111.IP \\*(Cs\\*(Pt\\*;\\*(Pl\\*;\\*(Pb\\*;\\*(Pr\\*;\\*(Pp\\*;\\*(Pt\\*;\\*(Pl\\*;\\*(Pp\\*$\\*v
1112Copy Rectangular Area (DECCRA)
1113  \*(Pt\*;\*(Pl\*;\*(Pb\*;\*(Pr denotes the rectangle.
1114  \*(Pp denotes the source page.
1115  \*(Pt\*;\*(Pl denotes the target location.
1116  \*(Pp denotes the target page.
1117.
1118.IP \\*(Cs\\*(Pt\\*s\\*;\\*(Pl\\*s\\*;\\*(Pb\\*s\\*;\\*(Pr\\*s\\*(qu\\*w
1119Enable Filter Rectangle (DECEFR)
1120.br
1121Parameters are [top;left;bottom;right].
1122.br
1123Defines the coordinates of a filter rectangle and activates it.
1124Anytime the locator is detected outside of the filter rectangle,
1125an outside rectangle event is generated and the rectangle is disabled.
1126Filter rectangles are always treated as "one-shot" events.
1127Any parameters that are omitted default to the current locator position.
1128If all parameters are omitted, any locator motion will be reported.
1129DECELR always cancels any prevous rectangle definition.
1130.
1131.IP \\*(Cs\\*(Ps\\*s\\*x
1132Request Terminal Parameters (DECREQTPARM)
1133.br
1134if \*(Ps is a "0" (default) or "1", and \fBxterm\fR is emulating VT100,
1135the control sequence elicits a response of the same form
1136whose parameters describe the terminal:
1137  \*(Ps \(-> the given \*(Ps incremented by 2.
1138  \*1 \(-> no parity
1139  \*1 \(-> eight bits
1140  \*1 \*2 \*8 \(-> transmit 38.4k baud
1141  \*1 \*2 \*8 \(-> receive 38.4k baud
1142  \*1 \(-> clock multiplier
1143  \*0 \(-> STP flags
1144.
1145.IP \\*(Cs\\*(Ps\\*s\\*x
1146Select Attribute Change Extent (DECSACE).
1147  \*(Ps = \*0 \(-> from start to end position, wrapped
1148  \*(Ps = \*1 \(-> from start to end position, wrapped
1149  \*(Ps = \*2 \(-> rectangle (exact).
1150.
1151.IP \\*(Cs\\*(Pc\\*;\\*(Pt\\*;\\*(Pl\\*;\\*(Pb\\*;\\*(Pr\\*$\\*x
1152Fill Rectangular Area (DECFRA).
1153  \*(Pc is the character to use.
1154  \*(Pt\*;\*(Pl\*;\*(Pb\*;\*(Pr denotes the rectangle.
1155.
1156.IP \\*(Cs\\*(Ps\\*s\\*;\\*(Pu\\*s\\*(qu\\*z
1157Enable Locator Reporting (DECELR)
1158.br
1159Valid values for the first parameter:
1160  \*(Ps = \*0 \(-> Locator disabled (default)
1161  \*(Ps = \*1 \(-> Locator enabled
1162  \*(Ps = \*2 \(-> Locator enabled for one report, then disabled
1163.br
1164The second parameter specifies the coordinate unit for locator reports.
1165.br
1166Valid values for the second parameter:
1167  \*(Pu = \*0 or omitted \(-> default to character cells
1168  \*(Pu = \*1 \(-> device physical pixels
1169  \*(Pu = \*2 \(-> character cells
1170.
1171.IP \\*(Cs\\*(Pt\\*;\\*(Pl\\*;\\*(Pb\\*;\\*(Pr\\*$\\*z
1172Erase Rectangular Area (DECERA).
1173  \*(Pt\*;\*(Pl\*;\*(Pb\*;\*(Pr denotes the rectangle.
1174.
1175.IP \\*(Cs\\*(Pm\\*s\\*(qu\\*{
1176Select Locator Events (DECSLE)
1177.br
1178Valid values for the first (and any additional parameters) are:
1179  \*(Ps = \*0 \(-> only respond to explicit host requests (DECRQLP)
1180             (default) also cancels any filter rectangle
1181  \*(Ps = \*1 \(-> report button down transitions
1182  \*(Ps = \*2 \(-> do not report button down transitions
1183  \*(Ps = \*3 \(-> report button up transitions
1184  \*(Ps = \*4 \(-> do not report button up transitions
1185.
1186.IP \\*(Cs\\*(Pt\\*;\\*(Pl\\*;\\*(Pb\\*;\\*(Pr\\*$\\*{
1187Selective Erase Rectangular Area (DECSERA).
1188  \*(Pt\*;\*(Pl\*;\*(Pb\*;\*(Pr denotes the rectangle.
1189.
1190.IP \\*(Cs\\*(Ps\\*s\\*(qu\\*|
1191Request Locator Position (DECRQLP)
1192.br
1193Valid values for the parameter are:
1194  \*(Ps = \*0, 1 or omitted \(-> transmit a single DECLRP locator report
1195.sp
1196If Locator Reporting has been enabled by a DECELR, xterm will respond
1197with a DECLRP Locator Report.  This report is also generated on button
1198up and down events if they have been enabled with a DECSLE, or when
1199the locator is detected outside of a filter rectangle, if filter rectangles
1200have been enabled with a DECEFR.
1201.sp
1202  \(-> \*(Cs\*(Pe\*s\*;\*(Pb\*s\*;\*(Pr\*s\*;\*(Pc\*s\*;\*(Pp\*s\*&\*s\*w
1203.sp
1204Parameters are [event;button;row;column;page].
1205.br
1206Valid values for the event:
1207  \*(Pe = \*0 \(-> locator unavailable - no other parameters sent
1208  \*(Pe = \*1 \(-> request - xterm received a DECRQLP
1209  \*(Pe = \*2 \(-> left button down
1210  \*(Pe = \*3 \(-> left button up
1211  \*(Pe = \*4 \(-> middle button down
1212  \*(Pe = \*5 \(-> middle button up
1213  \*(Pe = \*6 \(-> right button down
1214  \*(Pe = \*7 \(-> right button up
1215  \*(Pe = \*8 \(-> M4 button down
1216  \*(Pe = \*9 \(-> M4 button up
1217  \*(Pe = \*1\*0 \(-> locator outside filter rectangle
1218.br
1219``button'' parameter is a bitmask indicating which buttons are pressed:
1220  \*(Pb = \*0 \(-> no buttons down
1221  \*(Pb & \*1 \(-> right button down
1222  \*(Pb & \*2 \(-> middle button down
1223  \*(Pb & \*4 \(-> left button down
1224  \*(Pb & \*8 \(-> M4 button down
1225.br
1226``row'' and ``column'' parameters are the coordinates of the locator
1227position in the xterm window, encoded as ASCII decimal.
1228.br
1229The ``page'' parameter is not used by xterm, and will be omitted.
1230.
1231.Ed
1232.
1233.St
1234.LP
1235.B
1236Operating System Controls
1237.
1238.IP \\*(Os\\*(Ps\\*s\\*;\\*(Pt\\*s\\*(ST
1239.IP \\*(Os\\*(Ps\\*s\\*;\\*(Pt\\*s\\*(Be
1240Set Text Parameters.
1241For colors and font,
1242if \*(Pt is a "?", the control sequence elicits a response which consists
1243of the control sequence which would set the corresponding value.
1244The \fIdtterm\fP control sequences allow you to determine the icon name
1245and window title.
1246  \*(Ps = \*0 \(-> Change Icon Name and Window Title to \*(Pt
1247  \*(Ps = \*1 \(-> Change Icon Name to \*(Pt
1248  \*(Ps = \*2 \(-> Change Window Title to \*(Pt
1249  \*(Ps = \*3 \(-> Set X property on top-level window. \*(Pt should be in the form
1250"\fIprop=value\fP", or just "\fIprop\fP" to delete the property
1251  \*(Ps = \*4 ; \fIc ; spec\fP \(-> Change Color Number \fIc\fP to
1252the color specified by \fIspec\fP,
1253i.e., a name or RGB specification as per \fIXParseColor\fP.
1254Any number of \fIc name\fP pairs may be given.
1255The color numbers correspond to the ANSI colors 0-7,
1256their bright versions 8-15,
1257and if supported, the remainder of the 88-color or 256-color table.
1258.sp
1259If a "?" is given rather than a name or RGB specification,
1260xterm replies with a control sequence of the same form which can be used
1261to set the corresponding color.
1262Because more than one pair of color number and specification can
1263be given in one control sequence, \fBxterm\fR can make more than one reply.
1264.sp
1265The 8 colors which may be set using \*1\*0 through \*1\*7 are
1266denoted \fIdynamic colors\fR, since the corresponding control sequences
1267were the first means for setting \fBxterm\fR's colors dynamically,
1268i.e., after it was started.
1269They are not the same as the ANSI colors.
1270One or more parameters is expected for \*(Pt.
1271Each successive parameter changes the next color in the list.
1272The value of \*(Ps tells the starting point in the list.
1273The colors are specified by name or RGB specification as per \fIXParseColor\fP.
1274.sp
1275If a "?" is given rather than a name or RGB specification,
1276xterm replies with a control sequence of the same form which can be used
1277to set the corresponding dynamic color.
1278Because more than one pair of color number and specification can
1279be given in one control sequence, \fBxterm\fR can make more than one reply.
1280.sp
1281  \*(Ps = \*1\*0 \(-> Change VT100 text foreground color to \*(Pt
1282  \*(Ps = \*1\*1 \(-> Change VT100 text background color to \*(Pt
1283  \*(Ps = \*1\*2 \(-> Change text cursor color to \*(Pt
1284  \*(Ps = \*1\*3 \(-> Change mouse foreground color to \*(Pt
1285  \*(Ps = \*1\*4 \(-> Change mouse background color to \*(Pt
1286  \*(Ps = \*1\*5 \(-> Change Tektronix foreground color to \*(Pt
1287  \*(Ps = \*1\*6 \(-> Change Tektronix background color to \*(Pt
1288  \*(Ps = \*1\*7 \(-> Change highlight color to \*(Pt
1289  \*(Ps = \*1\*8 \(-> Change Tektronix cursor color to \*(Pt
1290.sp
1291  \*(Ps = \*4\*6 \(-> Change Log File to \*(Pt (normally disabled by a
1292compile-time option)
1293.sp
1294  \*(Ps = \*5\*0 \(-> Set Font to \*(Pt
1295If \*(Pt begins with a "#", index in the font menu, relative (if the
1296next character is a plus or minus sign) or absolute.  A number is
1297expected but not required after the sign (the default is the current
1298entry for relative, zero for absolute indexing).
1299.sp
1300  \*(Ps = \*5\*1 (reserved for Emacs shell)
1301.sp
1302  \*(Ps = \*5\*2 \(-> Manipulate Selection Data.
1303These controls may be disabled using the \fIallowWindowOps\fP resource.
1304The parameter \*(Pt is parsed as
1305.br
1306        \*(Pc\*;\*(Pd
1307.br
1308The first, \*(Pc, may contain any character from the
1309set \*c \*p \*(cs \*0 \*1 \*2 \*3 \*4 \*5 \*6 \*7.
1310It is used to construct a list of selection parameters for
1311clipboard,
1312primary,
1313select,
1314or cut buffers 0 through 8 respectively,
1315in the order given.
1316If the parameter is empty, \fIxterm\fP uses \*(cs\*0,
1317to specify the configurable primary/clipboard selection and cut buffer 0.
1318.br
1319The second parameter, \*(Pd, gives the selection data.
1320Normally this is a string encoded in base64.
1321The data becomes the new selection,
1322which is then available for pasting by other applications.
1323.br
1324If the second parameter is a \*?,
1325\fIxterm\fP replies to the host with the selection
1326data encoded using the same protocol.
1327.Ed
1328.
1329.St
1330.LP
1331.B
1332Privacy Message
1333.IP \\*(PM\\*(Pt\\*s\\*(ST
1334\fIxterm\fP implements no \*(PM functions; \*(Pt is ignored.
1335\*(Pt need not be printable characters.
1336.Ed
1337.
1338.SH
1339Alt and Meta Keys
1340.LP
1341Many keyboards have keys labeled "Alt".
1342Few have keys labeled "Meta".
1343However, \fIxterm\fP's default translations use the \fIMeta\fP modifier.
1344Common keyboard configurations assign the \fIMeta\fP modifier to an "Alt" key.
1345By using \fIxmodmap\fP one may have the modifier assigned to a different key,
1346and have "real" alt and meta keys.
1347Here is an example:
1348.DS B
1349! put meta on mod3 to distinguish it from alt
1350keycode 64 = Alt_L
1351clear mod1
1352add mod1 = Alt_L
1353keycode 115 = Meta_L
1354clear mod3
1355add mod3 = Meta_L
1356.DE
1357.LP
1358The \fBmetaSendsEscape\fP resource
1359(and \fBaltSendsEscape\fP if \fBaltIsNotMeta\fP is set)
1360can be used to control the way the \fIMeta\fP modifier applies to ordinary
1361keys unless the \fBmodifyOtherKeys\fP resource is set:
1362.IP
1363-
1364prefix a key with the \*(Es character.
1365.IP
1366-
1367shift the key from codes 0-127 to 128-255 by adding 128.
1368.LP
1369The table shows the result for a given character "x" with modifiers
1370according to the default translations with the resources set on or off.
1371This assumes \fBaltIsNotMeta\fP is set:
1372.TS
1373center;
1374lf3     lf3     lf3     lf3
1375lf3w(2c)        lf3w(2c)        lf3w(2c)        lf3w(2c) .
1376_
1377key     altSendsEscape  metaSendsEscape result
1378_
1379x       off     off     x
1380Meta-x  off     off     shift
1381Alt-x   off     off     shift
1382Alt+Meta-x      off     off     shift
1383x       ON      off     x
1384Meta-x  ON      off     shift
1385Alt-x   ON      off     \*(Es x
1386Alt+Meta-x      ON      off     \*(Es shift
1387x       off     ON      x
1388Meta-x  off     ON      \*(Es x
1389Alt-x   off     ON      shift
1390Alt+Meta-x      off     ON      \*(Es shift
1391x       ON      ON      x
1392Meta-x  ON      ON      \*(Es x
1393Alt-x   ON      ON      \*(Es x
1394Alt+Meta-x      ON      ON      \*(Es x
1395_
1396.TE
1397.SH
1398PC-Style Function Keys
1399.ds RH Function Keys
1400.LP
1401If \fIxterm\fP does minimal translation of the function keys, it usually does this
1402with a PC-style keyboard, so PC-style function keys result.
1403Sun keyboards are similar to PC keyboards.
1404Both have cursor and scrolling operations printed on the keypad,
1405which duplicate the smaller cursor and scrolling keypads.
1406.LP
1407X does not predefine NumLock (used for VT220 keyboards) or Alt (used as
1408an extension for the Sun/PC keyboards) as modifiers.
1409These keys are recognized as modifiers when enabled
1410by the \fBnumLock\fP resource,
1411or by the DECSET \*1\*0\*3\*5 control sequence.
1412.LP
1413The cursor keys transmit the following escape sequences depending on the
1414mode specified via the \fBDECCKM\fP escape sequence.
1415.TS
1416center;
1417cf3     cf3     cf3
1418lf3w(2c)        lf3w(2c)        lf3w(2c) .
1419Key     Normal  Application
1420_
1421Cursor Up       \*(Cs\*A        \*(S3\*A
1422Cursor Down     \*(Cs\*(cB      \*(S3\*(cB
1423Cursor Right    \*(Cs\*C        \*(S3\*C
1424Cursor Left     \*(Cs\*D        \*(S3\*D
1425_
1426.TE
1427The home- and end-keys
1428(unlike PageUp and other keys also on the 6-key editing keypad)
1429are considered "cursor keys" by \fIxterm\fP.
1430Their mode is also controlled by the \fBDECCKM\fP escape sequence:
1431.TS
1432center;
1433cf3     cf3     cf3
1434lf3w(2c)        lf3w(2c)        lf3w(2c) .
1435Key     Normal  Application
1436_
1437Home    \*(Cs\*H        \*(S3\*H
1438End     \*(Cs\*F        \*(S3\*F
1439_
1440.TE
1441.LP
1442The application keypad transmits the following escape sequences depending on the
1443mode specified via the \fBDECPNM\fP and \fBDECPAM\fP escape sequences.
1444Use the NumLock key to override the application mode.
1445.LP
1446Not all keys are present on the Sun/PC keypad (e.g., PF1, Tab), but are supported by
1447the program.
1448.TS
1449center;
1450cf3     cf3     cf3     cf3     cf3
1451lf3w(2c)        lf3w(2c)        lf3w(2c)        lf3w(2c)        lf3w(2c) .
1452Key     Numeric Application     Terminfo        Termcap
1453_
1454Space   \*(Sp   \*(S3\*(Sp      -       -
1455Tab     \*(Ta   \*(S3\*I        -       -
1456Enter   \*(Cr   \*(S3\*M        kent    @8
1457PF1     \*(S3\*P        \*(S3\*P        kf1     k1
1458PF2     \*(S3\*Q        \*(S3\*Q        kf2     k2
1459PF3     \*(S3\*R        \*(S3\*R        kf3     k3
1460PF4     \*(S3\*S        \*(S3\*S        kf4     k4
1461* \f1(multiply)\fP      \**     \*(S3\*j        -       -
1462+ \f1(add)\fP   \*+     \*(S3\*k        -       -
1463, \f1(comma)\fP \*,     \*(S3\*l        -       -
1464- \f1(minus)\fP \*-     \*(S3\*m        -       -
1465\&. \f1(Delete)\fP      \*.     \*(Cs\*3\*(c~   -       -
1466/ \f1(divide)\fP        \*/     \*(S3\*o        -       -
14670 \f1(Insert)\fP        \*0     \*(Cs\*2\*(c~   -       -
14681 \f1(End)\fP   \*1     \*(S3\*F        kc1     K4
14692 \f1(DownArrow)\fP     \*2     \*(Cs\*(cB      -       -
14703 \f1(PageDown)\fP      \*3     \*(Cs\*6\*(c~   kc3     K5
14714 \f1(LeftArrow)\fP     \*4     \*(Cs\*D        -       -
14725 \f1(Begin)\fP \*5     \*(Cs\*E        kb2     K2
14736 \f1(RightArrow)\fP    \*6     \*(Cs\*C        -       -
14747 \f1(Home)\fP  \*7     \*(S3\*H        ka1     K1
14758 \f1(UpArrow)\fP       \*8     \*(Cs\*A        -       -
14769 \f1(PageUp)\fP        \*9     \*(Cs\*5\*(c~   ka3     K3
1477= (equal)       \*=     \*(S3\*(XX      -       -
1478_
1479.TE
1480They also provide 12 function keys, as well as a few other special-purpose keys.
1481.TS
1482center;
1483cf3     cf3
1484lf3w(2c)        lf3w(2c) .
1485Key     Escape Sequence
1486_
1487F1      \*(S3\*P
1488F2      \*(S3\*Q
1489F3      \*(S3\*R
1490F4      \*(S3\*S
1491F5      \*(Cs\*1\*5\*(c~
1492F6      \*(Cs\*1\*7\*(c~
1493F7      \*(Cs\*1\*8\*(c~
1494F8      \*(Cs\*1\*9\*(c~
1495F9      \*(Cs\*2\*0\*(c~
1496F10     \*(Cs\*2\*1\*(c~
1497F11     \*(Cs\*2\*3\*(c~
1498F12     \*(Cs\*2\*4\*(c~
1499_
1500.TE
1501.LP
1502Older versions of \fIxterm\fP implement different escape sequences for F1 through F4.
1503These can be activated by setting the \fBoldXtermFKeys\fP resource.
1504However, since they do not correspond to any hardware terminal, they have been deprecated.
1505(The DEC VT220 reserves F1 through F5 for local functions such as \fBSetup\fP).
1506.TS
1507center;
1508cf3     cf3
1509lf3w(2c)        lf3w(2c) .
1510Key     Escape Sequence
1511_
1512F1      \*(Cs\*1\*1\*(c~
1513F2      \*(Cs\*1\*2\*(c~
1514F3      \*(Cs\*1\*3\*(c~
1515F4      \*(Cs\*1\*4\*(c~
1516_
1517.TE
1518In normal mode, i.e., a Sun/PC keyboard
1519when the \fBsunKeyboard\fP resource is false,
1520\fIxterm\fP recognizes function key modifiers
1521which are parameters appended before the final character
1522of the control sequence.
1523.TS
1524center;
1525cf3     lf3
1526cf3w(2c)        lf3w(2c) .
1527Code    Modifiers
1528_
15292       Shift
15303       Alt
15314       Shift + Alt
15325       Control
15336       Shift + Control
15347       Alt + Control
15358       Shift + Alt + Control
1536_
1537.TE
1538For example, shift-F5 would be sent as
1539\*(Cs\*1\*5\*;\*2\*(c~
1540.LP
1541If the \fBalwaysUseMods\fP resource is set, the Meta modifier also is
1542recognized, making parameters 9 through 16.
1543.SH
1544VT220-Style Function Keys
1545.LP
1546However, \fIxterm\fP is most useful as a DEC VT102 or VT220 emulator.
1547Set the \fBsunKeyboard\fP resource to true to force a Sun/PC keyboard
1548to act like a VT220 keyboard.
1549
1550The VT102/VT220 application keypad transmits unique escape sequences in
1551application mode, which are distinct from the cursor and scrolling keypad:
1552.TS
1553center;
1554cf3     cf3     cf3
1555lf3w(2c)        lf3w(2c)        lf3w(2c) .
1556Key     Numeric Application
1557_
1558Space   \*(Sp   \*(S3\*(Sp
1559Tab     \*(Ta   \*(S3\*I
1560Enter   \*(Cr   \*(S3\*M
1561PF1     \*(S3\*P        \*(S3\*P
1562PF2     \*(S3\*Q        \*(S3\*Q
1563PF3     \*(S3\*R        \*(S3\*R
1564PF4     \*(S3\*S        \*(S3\*S
1565* \f1(multiply)\fP      \**     \*(S3\*j
1566+ \f1(add)\fP   \*+     \*(S3\*k
1567, \f1(comma)\fP \*,     \*(S3\*l
1568- \f1(minus)\fP \*-     \*(S3\*m
1569\&. \f1(period)\fP      \*.     \*(S3\*n
1570/ \f1(divide)\fP        \*/     \*(S3\*o
15710       \*0     \*(S3\*p
15721       \*1     \*(S3\*q
15732       \*2     \*(S3\*r
15743       \*3     \*(S3\*(cs
15754       \*4     \*(S3\*t
15765       \*5     \*(S3\*u
15776       \*6     \*(S3\*v
15787       \*7     \*(S3\*w
15798       \*8     \*(S3\*x
15809       \*9     \*(S3\*y
1581= (equal)       \*=     \*(S3\*(XX
1582_
1583.TE
1584The VT220 provides a 6-key editing keypad,
1585which is analogous to that on the PC keyboard.
1586It is not affected by \fBDECCKM\fP or \fBDECPNM\fP/\fBDECPAM\fP:
1587.TS
1588center;
1589cf3     cf3     cf3
1590lf3w(2c)        lf3w(2c)        lf3w(2c) .
1591Key     Normal  Application
1592_
1593\f1Insert\fP    \*(Cs\*2\*(c~   \*(Cs\*2\*(c~
1594\f1Delete\fP    \*(Cs\*3\*(c~   \*(Cs\*3\*(c~
1595\f1Home\fP      \*(Cs\*1\*(c~   \*(Cs\*1\*(c~
1596\f1End\fP       \*(Cs\*4\*(c~   \*(Cs\*4\*(c~
1597\f1PageUp\fP    \*(Cs\*5\*(c~   \*(Cs\*5\*(c~
1598\f1PageDown\fP  \*(Cs\*6\*(c~   \*(Cs\*6\*(c~
1599_
1600.TE
1601.LP
1602The VT220 provides 8 additional function keys.
1603With a Sun/PC keyboard, access these keys by Control/F1 for F13, etc.
1604.TS
1605center;
1606cf3     cf3
1607lf3w(2c)        lf3w(2c) .
1608Key     Escape Sequence
1609_
1610F13     \*(Cs\*2\*5\*(c~
1611F14     \*(Cs\*2\*6\*(c~
1612F15     \*(Cs\*2\*8\*(c~
1613F16     \*(Cs\*2\*9\*(c~
1614F17     \*(Cs\*3\*1\*(c~
1615F18     \*(Cs\*3\*2\*(c~
1616F19     \*(Cs\*3\*3\*(c~
1617F20     \*(Cs\*3\*4\*(c~
1618_
1619.TE
1620.SH
1621VT52-Style Function Keys
1622.LP
1623A VT52 does not have function keys, but it does have a numeric keypad and cursor keys.
1624They differ from the other emulations by the prefix.
1625Also, the cursor keys do not change:
1626.TS
1627center;
1628cf3     cf3
1629lf3w(2c)        lf3w(2c) .
1630Key     Normal/Application
1631_
1632Cursor Up       \*(Es\*A
1633Cursor Down     \*(Es\*(cB
1634Cursor Right    \*(Es\*C
1635Cursor Left     \*(Es\*D
1636_
1637.TE
1638The keypad is similar:
1639.TS
1640center;
1641cf3     cf3     cf3
1642lf3w(2c)        lf3w(2c)        lf3w(2c) .
1643Key     Numeric Application
1644_
1645Space   \*(Sp   \*(Es\*?\*(Sp
1646Tab     \*(Ta   \*(Es\*?\*I
1647Enter   \*(Cr   \*(Es\*?\*M
1648PF1     \*(Es\*P        \*(Es\*P
1649PF2     \*(Es\*Q        \*(Es\*Q
1650PF3     \*(Es\*R        \*(Es\*R
1651PF4     \*(Es\*S        \*(Es\*S
1652* \f1(multiply)\fP      \**     \*(Es\*?\*j
1653+ \f1(add)\fP   \*+     \*(Es\*?\*k
1654, \f1(comma)\fP \*,     \*(Es\*?\*l
1655- \f1(minus)\fP \*-     \*(Es\*?\*m
1656\&. \f1(period)\fP      \*.     \*(Es\*?\*n
1657/ \f1(divide)\fP        \*/     \*(Es\*?\*o
16580       \*0     \*(Es\*?\*p
16591       \*1     \*(Es\*?\*q
16602       \*2     \*(Es\*?\*r
16613       \*3     \*(Es\*?\*(cs
16624       \*4     \*(Es\*?\*t
16635       \*5     \*(Es\*?\*u
16646       \*6     \*(Es\*?\*v
16657       \*7     \*(Es\*?\*w
16668       \*8     \*(Es\*?\*x
16679       \*9     \*(Es\*?\*y
1668= (equal)       \*=     \*(Es\*?\*(XX
1669_
1670.TE
1671.SH
1672Sun-Style Function Keys
1673.LP
1674The \fIxterm\fP program provides support for Sun keyboards more directly, by
1675a menu toggle that causes it to send Sun-style function key codes rather than VT220.
1676Note, however, that the \fIsun\fP and \fIVT100\fP emulations are not really
1677compatible.  For example, their wrap-margin behavior differs.
1678.LP
1679Only function keys are altered; keypad and cursor keys are the same.
1680The emulation responds identically.
1681See the xterm-sun terminfo entry for details.
1682.SH
1683HP-Style Function Keys
1684.LP
1685Similarly, \fIxterm\fP can be compiled to support HP keyboards.
1686See the xterm-hp terminfo entry for details.
1687.SH
1688The Alternate Screen Buffer
1689.LP
1690\fBXterm\fP maintains two screen buffers.
1691The normal screen buffer allows you to scroll back to view saved lines
1692of output up to the maximum set by the \fBsaveLines\fP resource.
1693The alternate screen buffer is exactly as large as the display,
1694contains no additional saved lines.
1695When the alternate screen buffer is active,
1696you cannot scroll back to view saved lines.
1697\fBXterm\fP provides control sequences and menu entries
1698for switching between the two.
1699
1700Most full-screen applications use terminfo or termcap to obtain
1701strings used to start/stop full-screen mode,
1702i.e., \fIsmcup\fP and \fIrmcup\fP for terminfo,
1703or the corresponding \fIti\fP and \fIte\fP for termcap.
1704The \fBtiteInhibit\fP resource removes the \fIti\fP and \fIte\fP strings
1705from the TERMCAP string which is set in the environment for some platforms.
1706That is not done when \fBxterm\fP is built with terminfo libraries because
1707terminfo does not provide the whole text of the termcap data in one piece.
1708It would not work for terminfo anyway, since terminfo data is not passed
1709in environment variables;
1710setting an environment variable in this manner would have no effect on
1711the application's ability to switch between normal and alternate screen
1712buffers.
1713Instead, the newer private mode controls
1714(such as \*1\*0\*4\*9)
1715for switching between normal
1716and alternate screen buffers simply disable the switching.
1717They add other features such as clearing the display for the same reason:
1718to make the details of switching independent of the application that
1719requests the switch.
1720.SH
1721Bracketed Paste Mode
1722.ds RH Bracketed Paste Mode
1723.LP
1724When bracketed paste mode is set,
1725pasted text is bracketed with control sequences
1726so that the program can differentiate pasted text from typed-in text.
1727When bracketed paste mode is set,
1728the program will receive: ESC [ 200 ~,
1729followed by the pasted text, followed by ESC [ 201 ~.
1730.SH
1731Mouse Tracking
1732.ds RH Mouse Tracking
1733.LP
1734The VT widget can be set to send the mouse position and other
1735information on button presses.  These modes are typically used by
1736editors and other full-screen applications that want to make use of
1737the mouse.
1738
1739There are six mutually exclusive modes.
1740One is DEC Locator mode, enabled by the
1741DECELR \*(Cs\*(Ps\*s\*;\*(Ps\*s\*s\*(qu\*s\*z
1742control sequence, and is not described here
1743(control sequences are summarized above).
1744The remaining five
1745modes are each enabled (or disabled) by a different parameter in
1746DECSET \*(Cs\*?\*(Pm\*s\*h
1747or
1748DECRST \*(Cs\*?\*(Pm\*s\*l
1749control sequence.
1750
1751Manifest constants for the parameter values
1752are defined in \fBxcharmouse.h\fP as follows:
1753.
1754.DS B
1755#define SET_X10_MOUSE               9
1756#define SET_VT200_MOUSE             1000
1757#define SET_VT200_HIGHLIGHT_MOUSE   1001
1758#define SET_BTN_EVENT_MOUSE         1002
1759#define SET_ANY_EVENT_MOUSE         1003
1760
1761#define SET_FOCUS_EVENT_MOUSE       1004
1762.DE
1763.LP
1764The motion reporting modes are strictly \fIxterm\fP extensions, and are not
1765part of any standard, though they are analogous to the DEC VT200 DECELR
1766locator reports.
1767
1768Parameters (such as pointer position and button number) for all mouse
1769tracking escape sequences generated by \fIxterm\fP
1770encode numeric parameters in a single character as
1771\fIvalue\fP+32.
1772For example, \*! specifies the value 1.
1773The upper left character position on the terminal is denoted as 1,1.
1774
1775X10 compatibility mode sends an escape sequence only on button press,
1776encoding the location and the mouse button pressed.
1777It is enabled by specifying parameter 9 to DECSET.
1778On button press, \fIxterm\fP sends
1779\*(Cs\*M\*(Cb\*(Cx\*(Cy (6 characters).
1780\*(Cb is button\-1.
1781\*(Cx and \*(Cy are the x and y coordinates of the mouse when the
1782button was pressed.
1783
1784Normal tracking mode sends an escape sequence on both button press and
1785release.  Modifier key (shift, ctrl, meta) information is also sent.
1786It is enabled by specifying parameter 1000 to DECSET.
1787On button press or release, \fIxterm\fP sends
1788\*(Cs\*M\*(Cb\*(Cx\*(Cy.
1789The low two bits of \*(Cb encode button information:
17900=MB1 pressed, 1=MB2 pressed, 2=MB3 pressed, 3=release.
1791The next three bits encode the modifiers which were down when the button was
1792pressed and are added together:  4=Shift, 8=Meta, 16=Control.
1793Note however that the shift and control bits are normally unavailable
1794because \fIxterm\fP uses the control modifier with mouse for popup menus,
1795and the shift modifier is used in the default translations for button events.
1796The \fIMeta\fP modifier recognized by \fIxterm\fP is the \fImod1\fP mask,
1797and is not necessarily the "Meta" key (see \fIxmodmap\fP).
1798\*(Cx and \*(Cy are the x and y coordinates of the mouse event, encoded as
1799in X10 mode.
1800
1801Wheel mice may return buttons 4 and 5.
1802Those buttons are represented by the same event codes
1803as buttons 1 and 2 respectively,
1804except that 64 is added to the event code.
1805Release events for the wheel buttons are not reported.
1806
1807Mouse highlight tracking notifies a program of a button press, receives a
1808range of lines from the program, highlights the region covered by
1809the mouse within that range until button release, and then sends the
1810program the release coordinates.
1811It is enabled by specifying parameter 1001 to DECSET.
1812Highlighting is performed only for button 1, though other button events
1813can be received.
1814\fBWarning:\fP use of this mode requires a cooperating program or it will
1815hang \fIxterm.\fP
1816On button press, the same information as for normal tracking is
1817generated; \fIxterm\fP then waits for the program to send mouse
1818tracking information.
1819\fIAll X events are ignored until the proper escape sequence is
1820received from the pty:\fP
1821\*(Cs\*(Ps\*s\*;\*(Ps\*s\*;\*(Ps\*s\*;\*(Ps\*s\*;\*(Ps\*s\*T.
1822The parameters are \fIfunc, startx, starty, firstrow,\fP and \fIlastrow.\fP
1823\fIfunc\fP is non-zero to initiate highlight tracking and zero to abort.
1824\fIstartx\fP and \fIstarty\fP give the starting x and y location for
1825the highlighted region.  The ending location tracks the mouse, but
1826will never be above row \fIfirstrow\fP and will always be above row
1827\fIlastrow.\fP  (The top of the screen is row 1.)
1828When the button is released, \fIxterm\fP reports the ending position
1829one of two ways: if the start and end coordinates are valid text
1830locations: \*(Cs\*t\*(Cx\*(Cy.  If either coordinate is past
1831the end of the line:
1832\*(Cs\*T\*(Cx\*(Cy\*(Cx\*(Cy\*(Cx\*(Cy.
1833The parameters are \fIstartx, starty, endx, endy, mousex,\fP and \fImousey.\fP
1834\fIstartx, starty, endx, \fPand\fI endy\fP give the starting and
1835ending character positions of the region.  \fImousex\fP and \fImousey\fP
1836give the location of the mouse at button up, which may not be over a
1837character.
1838
1839Button-event tracking is essentially the same as normal tracking, but
1840\fIxterm\fP also reports button-motion events.  Motion events
1841are reported only if the mouse pointer has moved to a different character
1842cell.  It is enabled by specifying parameter 1002 to DECSET.
1843On button press or release, \fIxterm\fP sends the same codes used by normal
1844tracking mode.  On button-motion events, \fIxterm\fP adds 32 to the event code
1845(the third character, \*(Cb).
1846The other bits of the event code specify button and modifier keys as in normal mode.
1847For example, motion into cell x,y with button 1
1848down is reported as \*(Cs\*M\*@\*(Cx\*(Cy.
1849( \*@ = 32 + 0 (button 1) + 32 (motion indicator) ).
1850Similarly, motion with button 3
1851down is reported as \*(Cs\*M\*(cB\*(Cx\*(Cy.
1852( \*(cB = 32 + 2 (button 3) + 32 (motion indicator) ).
1853
1854Any-event mode is the same as button-event mode, except that all motion
1855events are reported, even if no mouse button is down.
1856It is enabled by specifying 1003 to DECSET.
1857
1858FocusIn/FocusOut can be combined with any of the mouse events since
1859it uses a different protocol.
1860When set, it causes \fIxterm\fP to send
1861\*(Cs\*I when the terminal gains focus, and
1862\*(Cs\*O when it loses focus.
1863.
1864.br
1865.ds RH Tektronix 4014 Mode
1866.SH
1867Tektronix 4014 Mode
1868.LP
1869Most of these sequences are standard Tektronix 4014 control sequences.
1870Graph mode supports the 12-bit addressing of the Tektronix 4014.
1871The major features missing are
1872the write-through and defocused modes.
1873This document does not describe the commands used in the various
1874Tektronix plotting modes but does describe the commands to switch modes.
1875.St
1876.IP \\*(Be
1877Bell (Ctrl-G)
1878.IP \\*(Bs
1879Backspace (Ctrl-H)
1880.IP \\*(Ta
1881Horizontal Tab (Ctrl-I)
1882.IP \\*(Lf
1883Line Feed or New Line (Ctrl-J)
1884.IP \\*(Vt
1885Cursor up (Ctrl-K)
1886.IP \\*(Ff
1887Form Feed or New Page (Ctrl-L)
1888.IP \\*(Cr
1889Carriage Return (Ctrl-M)
1890.IP \\*(Es\\*(Et
1891Switch to VT100 Mode (ESC Ctrl-C)
1892.IP \\*(Es\\*(En
1893Return Terminal Status (ESC Ctrl-E)
1894.IP \\*(Es\\*(Ff
1895PAGE (Clear Screen) (ESC Ctrl-L)
1896.IP \\*(Es\\*(So
1897Begin 4015 APL mode (ignored by \fIxterm\fP) (ESC Ctrl-N)
1898.IP \\*(Es\\*(Si
1899End 4015 APL mode (ignored by \fIxterm\fP) (ESC Ctrl-O)
1900.IP \\*(Es\\*(Eb
1901COPY (Save Tektronix Codes to file COPYyyyy-mm-dd.hh:mm:ss) (ESC Ctrl-W)
1902.IP \\*(Es\\*(Ca
1903Bypass Condition (ESC Ctrl-X)
1904.IP \\*(Es\\*(Su
1905GIN mode (ESC Ctrl-Z)
1906.IP \\*(Es\\*(Fs
1907Special Point Plot Mode (ESC Ctrl-\e)
1908.IP \\*(Es\\*8
1909Select Large Character Set
1910.IP \\*(Es\\*9
1911Select #2 Character Set
1912.IP \\*(Es\\*:
1913Select #3 Character Set
1914.IP \\*(Es\\*;
1915Select Small Character Set
1916.IP \\*(Os\\*(Ps\\*s\\*;\\*(Pt\\*s\\*(Be
1917Set Text Parameters of VT window
1918  \*(Ps = \*0 \(-> Change Icon Name and Window Title to \*(Pt
1919  \*(Ps = \*1 \(-> Change Icon Name to \*(Pt
1920  \*(Ps = \*2 \(-> Change Window Title to \*(Pt
1921  \*(Ps = \*4\*6 \(-> Change Log File to \*(Pt (normally disabled by a
1922compile-time option)
1923.IP \\*(Es\\*`
1924Normal Z Axis and Normal (solid) Vectors
1925.IP \\*(Es\\*a
1926Normal Z Axis and Dotted Line Vectors
1927.IP \\*(Es\\*b
1928Normal Z Axis and Dot-Dashed Vectors
1929.IP \\*(Es\\*c
1930Normal Z Axis and Short-Dashed Vectors
1931.IP \\*(Es\\*d
1932Normal Z Axis and Long-Dashed Vectors
1933.IP \\*(Es\\*h
1934Defocused Z Axis and Normal (solid) Vectors
1935.IP \\*(Es\\*i
1936Defocused Z Axis and Dotted Line Vectors
1937.IP \\*(Es\\*j
1938Defocused Z Axis and Dot-Dashed Vectors
1939.IP \\*(Es\\*k
1940Defocused Z Axis and Short-Dashed Vectors
1941.IP \\*(Es\\*l
1942Defocused Z Axis and Long-Dashed Vectors
1943.IP \\*(Es\\*p
1944Write-Thru Mode and Normal (solid) Vectors
1945.IP \\*(Es\\*q
1946Write-Thru Mode and Dotted Line Vectors
1947.IP \\*(Es\\*r
1948Write-Thru Mode and Dot-Dashed Vectors
1949.IP \\*(Es\\*(cs
1950Write-Thru Mode and Short-Dashed Vectors
1951.IP \\*(Es\\*t
1952Write-Thru Mode and Long-Dashed Vectors
1953.IP \\*(Fs
1954Point Plot Mode (Ctrl-\e)
1955.IP \\*(Gs
1956Graph Mode (Ctrl-])
1957.IP \\*(Rs
1958Incremental Plot Mode (Ctrl-^)
1959.IP \\*(Us
1960Alpha Mode (Ctrl-_)
1961.Ed
1962.
1963.
1964.br
1965.ds RH VT52 Mode
1966.SH
1967VT52 Mode
1968.LP
1969Parameters for cursor movement are at the end of the \*(Es\*Y escape sequence.
1970Each ordinate is encoded in a single character as \fIvalue\fP+32.
1971For example, \*! is 1.
1972The screen coordinate system is 0-based.
1973.St
1974.IP \\*(Es\\*A
1975Cursor up.
1976.IP \\*(Es\\*(cB
1977Cursor down.
1978.IP \\*(Es\\*C
1979Cursor right.
1980.IP \\*(Es\\*D
1981Cursor left.
1982.IP \\*(Es\\*F
1983Enter graphics mode.
1984.IP \\*(Es\\*G
1985Exit graphics mode.
1986.IP \\*(Es\\*H
1987Move the cursor to the home position.
1988.IP \\*(Es\\*I
1989Reverse line feed.
1990.IP \\*(Es\\*J
1991Erase from the cursor to the end of the screen.
1992.IP \\*(Es\\*K
1993Erase from the cursor to the end of the line.
1994.IP \\*(Es\\*Y\\*(Ps\\*s\\*(Ps
1995Move the cursor to given row and column.
1996.IP \\*(Es\\*Z
1997Identify
1998  \(-> \*(Es\*s\*/\*s\*Z (``I am a VT52.'')
1999.IP \\*(Es\\*=
2000Enter alternate keypad mode.
2001.IP \\*(Es\\*>
2002Exit alternate keypad mode.
2003.IP \\*(Es\\*<
2004Exit VT52 mode (Enter VT100 mode).
2005.Ed
2006.
2007.if n .pl \n(nlu+1v
Note: See TracBrowser for help on using the browser.