F

xterm Control Sequences

This appendix list the escape sequences that can be used to control features of an xterm window or its terminal emulation.

In This Chapter:

xterm Control Sequences

Definitions

VT1 02 Mode

Tektronix 4014 Mode

F

xterm Control Sequences

A standard terminal performs many operations in response to escape sequences sent out by a program. In emulating a terminal, xterm responds to those same terminal escape sequences. Under UNIX, programs use the termcap or terminfo database to determine which escape sequences to send out. For more information, sec the standard UNIX man pages termcap(5) or terminfo(5), or the Nutshell Handbook Termcap and Terminfo, available from O’Reilly & Associates, Inc.

xterm Control Sequences

This appendix is based on two sources: the “Xterm Control Sequences” document, written by Edward Moy, University of California, Berkeley, for the X10 xterm; and X11 updates provided to the X Consortium by Skip Montanaro, GE Corporate Research & Development.

Definitions

C A single (required) character.
Ps A single (usually optional) numeric parameter, composed of one of more digits.
Pm A multiple numeric parameter composed of any number of single numeric parameters, separated by images character(s).
Pt A text parameter composed of printable characters.

VT102 Mode

Most of these control sequences are standard VT102 control sequences. There are, however, additional ones to provide control of xterm-dependent functions, like the scroUbar or window size.

images

images

images

images

images

images

images

Tektronix 4014 Mode

Most of these sequences are standard Tektronix 4014 control sequences. The major features missing are the alternate (APL) character set and the write-thru and defocused modes.

images

images

Get X Window System User's Guide for X11 R3 and R4 of the X Window System now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.