Penguin
Annotated edit history of xterm(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 AristotlePagaltzis 1 !!! NAME
2
3 xterm - terminal emulator for X
4
5 !!! SYNOPSIS
6
7 __xterm__ [[-''toolkitoption'' ...] [[-option ...]
8
9 !!! DESCRIPTION
10
11 The ''xterm'' program is a terminal emulator for the X Window System. It provides DEC VT102/VT220 (VTxxx) and Tektronix 4014 compatible terminals for programs that cannot use the window system directly. If the underlying operating system supports terminal resizing capabilities (for example, the SIGWINCH signal in systems derived from 4.3bsd), ''xterm'' will use the facilities to notify programs running in the window whenever it is resized.
12
13 The VTxxx and Tektronix 4014 terminals each have their own window so that you can edit text in one and look at graphics in the other at the same time. To maintain the correct aspect ratio (height/width), Tektronix graphics will be restricted to the largest box with a 4014's aspect ratio that will fit in the window. This box is located in the upper left area of the window.
14
15 Although both windows may be displayed at the same time, one of them is considered the "active" window for receiving keyboard input and terminal output. This is the window that contains the text cursor. The active window can be chosen through escape sequences, the "VT Options" menu in the VTxxx window, and the "Tek Options" menu in the 4014 window.
16
17 !!! EMULATIONS
18
19 The VT102 emulation is fairly complete, but does not support autorepeat. Double-size characters are displayed properly if your font server supports scalable fonts. Blinking characters are partially implemented; the emulation is functional but does not have the appearance of a real VT102. The VT220 emulation does not support soft fonts, it is otherwise complete. ''termcap(5)'' entries that work with ''xterm'' include "xterm," "vt102," "vt100" and "ansi," and ''xterm'' automatically searches the termcap file in this order for these entries and then sets the "TERM" and the "TERMCAP" environment variables. You may also use "vt220," but must set the terminal emulation level with the __decTerminalID__ resource.
20
21 Many of the special ''xterm'' features may be modified under program control through a set of escape sequences different from the standard VT102 escape sequences. (See the ''Xterm Control Sequences'' document.)
22
23 The Tektronix 4014 emulation is also fairly good. It supports 12-bit graphics addressing, scaled to the window size. Four different font sizes and five different lines types are supported. There is no write-through or defocused mode support. The Tektronix text and graphics commands are recorded internally by ''xterm'' and may be written to a file by sending the COPY escape sequence (or through the __Tektronix__ menu; see below). The name of the file will be "__COPY__''yyyy''__-__''MM''__-__''dd''__.__''hh''__:__''mm''__:__''ss''", where ''yyyy'', ''MM'', ''dd'', ''hh'', ''mm'' and ''ss'' are the year, month, day, hour, minute and second when the COPY was performed (the file is created in the directory ''xterm'' is started in, or the home directory for a login ''xterm'').
24
25 Not all of the features described in this manual are necessarily available in this version of xterm. Some (e.g., the non-VT220 extensions) are available only if they were compiled in, though the most commonly-used are in the default configuration.
26
27 !!! OTHER FEATURES
28
29 ''Xterm'' automatically highlights the text cursor when the pointer enters the window (selected) and unhighlights it when the pointer leaves the window (unselected). If the window is the focus window, then the text cursor is highlighted no matter where the pointer is.
30
31 In VT102 mode, there are escape sequences to activate and deactivate an alternate screen buffer, which is the same size as the display area of the window. When activated, the current screen is saved and replaced with the alternate screen. Saving of lines scrolled off the top of the window is disabled until the normal screen is restored. The ''termcap(5)'' entry for ''xterm'' allows the visual editor ''vi(1)'' to switch to the alternate screen for editing and to restore the screen on exit. A popup menu entry makes it simple to switch between the normal and alternate screens for cut and paste.
32
33 In either VT102 or Tektronix mode, there are escape sequences to change the name of the windows. Additionally, in VT102 mode, ''xterm'' implements the window-manipulation control sequences from ''dtterm'', such as resizing the window, setting its location on the screen.
34
35 ''Xterm'' allows character-based applications to receive mouse events (currently button-press and release events, and button-motion events) as keyboard control sequences. See ''Xterm Control Sequences'' for details.
36
37 !!! OPTIONS
38
39 The ''xterm'' terminal emulator accepts all of the standard X Toolkit command line options as well as the following (if the option begins with a `__+__' instead of a `__-__', the option is restored to its default value). The -version and -help options are interpreted even if ''xterm'' cannot open the display, and are useful for testing and configuration scripts:
40
41 ; __-version__ : This causes ''xterm'' to print a version number to the standard output.
42 ; __-help__ : This causes ''xterm'' to print out a verbose message describing its options. The message is written to the standard error.
43
44 The other options are used to control the appearance and behavior. Not all options are necessarily configured into your copy of ''xterm''.
45
46 ; __-132__ : Normally, the VT102 DECCOLM escape sequence that switches between 80 and 132 column mode is ignored. This option causes the DECCOLM escape sequence to be recognized, and the ''xterm'' window will resize appropriately.
47 ; __-ah__ : This option indicates that ''xterm'' should always highlight the text cursor. By default, ''xterm'' will display a hollow text cursor whenever the focus is lost or the pointer leaves the window.
48 ; __+ah__ : This option indicates that ''xterm'' should do text cursor highlighting based on focus.
49 ; __-ai__ : This option disables active icon support if that feature was compiled into xterm. This is equivalent to setting the ''vt100'' resource __activeIcon__ to FALSE.
50 ; __+ai__ : This option enables active icon support if that feature was compiled into xterm. This is equivalent to setting the ''vt100'' resource __activeIcon__ to TRUE.
51 ; __-aw__ : This option indicates that auto-wraparound should be allowed. This allows the cursor to automatically wrap to the beginning of the next line when when it is at the rightmost position of a line and text is output.
52 ; __+aw__ : This option indicates that auto-wraparound should not be allowed.
53 ; __-b__ ''number'' : This option specifies the size of the inner border (the distance between the outer edge of the characters and the window border) in pixels. The default is 2.
54 ; __+bc__ : turn off text cursor blinking. This overrides the __cursorBlink__ resource.
55 ; __-bc__ : turn on text cursor blinking. This overrides the __cursorBlink__ resource.
56 ; __-bcf__ ''milliseconds'' : time text cursor is off when blinking
57 ; __-bcn__ ''milliseconds'' : time text cursor is on when blinking
58 ; __-bdc__ : Set the ''vt100'' resource __colorBDMode__ to FALSE, disabling the display of characters with bold attribute as color
59 ; __+bdc__ : Set the ''vt100'' resource __colorBDMode__ to TRUE, enabling the display of characters with bold attribute as color rather than bold
60 ; __-cb__ : Set the ''vt100'' resource __cut!ToBeginningOfLine__ to FALSE.
61 ; __+cb__ : Set the ''vt100'' resource __cut!ToBeginningOfLine__ to TRUE.
62 ; __-cc__ ''characterclassrange''__:__''value''__[[,...]__ : This sets classes indicated by the given ranges for using in selecting by words. See the section specifying character classes.
63 ; __-cjk_width__ : Set the __cjkWidth__ resource to "true". When turned on, characters with East Asian Ambiguous (A) category in UTR 11 have a column width of 2. Othrwise, they have a column width of 1. This may be useful for some legacy CJK text terminal-based programs assuming box drawings and others to have a column width of 2. The default is "false"
64 ; __+cjk_width__ : Reset the __cjkWidth__ resource.
65 ; __-class__ ''string'' : This option allows you to override ''xterm'''s resource class. Normally it is "XTerm", but can be set to another class such as "UXTerm" to override selected resources.
66 ; __-cm__ : This option disables recognition of ANSI colorchange escape sequences.
67 ; __+cm__ : This option enables recognition of ANSI colorchange escape sequences. This is the same as the ''vt100'' resource __colorMode__.
68 ; __-cn__ : This option indicates that newlines should not be cut in line-mode selections.
69 ; __+cn__ : This option indicates that newlines should be cut in line-mode selections.
70 ; __-cr__ ''color'' : This option specifies the color to use for text cursor. The default is to use the same foreground color that is used for text.
71 ; __-cu__ : This option indicates that ''xterm'' should work around a bug in the ''more(1)'' program that causes it to incorrectly display lines that are exactly the width of the window and are followed by a line beginning with a tab (the leading tabs are not displayed). This option is so named because it was originally thought to be a bug in the ''curses(3x)'' cursor motion package.
72 ; __+cu__ : This option indicates that ''xterm'' should not work around the ''more(1)'' bug mentioned above.
73 ; __-dc__ : This option disables the escape sequence to change dynamic colors: the vt100 foreground and background colors, the text cursor color, the mouse cursor foreground and background colors, the Tektronix emulator foreground and background colors, and highlight color.
74 ; __+dc__ : This option enables the escape sequence to change dynamic colors.
75 ; __-e__ ''program'' __[[__ ''arguments'' __... ]__ : This option specifies the program (and its command line arguments) to be run in the ''xterm'' window. It also sets the window title and icon name to be the basename of the program being executed if neither ''-T'' nor ''-n'' are given on the command line. __This__ __must be the last option on the command line.__
76 ; __-en__ ''encoding'' : This options determines the encoding on which ''xterm'' runs. Encodings other than UTF-8 are supported by using __luit__. The __-lc__ option should be used instead of __-en__ for systems with locale support. This corresponds to the __locale__ resource.
77 ; __-fb__ ''font'' : This option specifies a font to be used when displaying bold text. This font must be the same height and width as the normal font. If only one of the normal or bold fonts is specified, it will be used as the normal font and the bold font will be produced by overstriking this font. The default is to do overstriking of the normal font. See also the discussion of __boldFont__ and __boldMode__ resources.
78 ; __-fa__ ''pattern'' : This option sets the pattern for fonts selected from the !FreeType library if support for that library was compiled into xterm. This corresponds to the __faceName__ resource.
79 ; __-fbb__ : This option indicates that ''xterm'' should compare normal and bold fonts bounding boxes to ensure they are compatible.
80 ; __+fbb__ : This option indicates that ''xterm'' should not compare normal and bold fonts bounding boxes to ensure they are compatible.
81 ; __-fbx__ : This option indicates that ''xterm'' should not assume that the normal and bold fonts have VT100 linedrawing characters. If any are missing, xterm will draw the characters directly.
82 ; __+fbx__ : This option indicates that ''xterm'' should assume that the normal and bold fonts have VT100 linedrawing characters.
83 ; __-fi__ ''font'' : This option sets the font for active icons if that feature was compiled into xterm. See also the discussion of the __iconFont__ resource.
84 ; __-fs__ ''size'' : This option sets the pointsize for fonts selected from the !FreeType library if support for that library was compiled into xterm. This corresponds to the __faceSize__ resource.
85 ; __-fw__ ''font'' : This option specifies the font to be used for displaying wide text. By default, it will attempt to use a font twice as wide as the font that will be used to draw normal text. If no doublewidth font is found, it will improvise, by stretching the normal font. This corresponds to the __wideFont__ resource.
86 ; __-fwb__ : ''font'' This option specifies the font to be used for displaying bold wide text. By default, it will attempt to use a font twice as wide as the font that will be used to draw bold text. If no doublewidth font is found, it will improvise, by stretching the bold font. This corresponds to the __wide!BoldFont__ resource.
87 ; __-fx__ ''font'' : This option specifies the font to be used for displaying the preedit string in the "!OverTheSpot" input method. See also the discussion of the __ximFont__ resource.
88 ; __-hc__ ''color'' : This option specifies the color to use for the background of selected or otherwise highlighted text. If not specified, reverse video is used.
89 ; __-hf__ : This option indicates that HP Function Key escape codes should be generated for function keys.
90 ; __+hf__ : This option indicates that HP Function Key escape codes should not be generated for function keys.
91 ; __-hold__ : Turn on the __hold__ resource, i.e., xterm will not immediately destroy its window when the shell command completes. It will wait until you use the window manager to destroy/kill the window, or if you use the menu entries that send a signal, e.g., HUP or KILL.
92 ; __+hold__ : Turn off the __hold__ resource, i.e., xterm will immediately destroy its window when the shell command completes.
93 ; __-ie__ : Turn on the __pty!InitialErase__ resource, i.e., use the pseudo-terminal's sense of the stty erase value.
94 ; __+ie__ : Turn off the __pty!InitialErase__ resource, i.e., set the stty erase value using the __kb__ string from the termcap entry as a reference, if available.
95 ; __-im__ : Turn on the __use!InsertMode__ resource.
96 ; __+im__ : Turn off the __use!InsertMode__ resource.
97 ; __-into__ ''windowId'' : Given an X window identifier (a decimal integer), xterm will reparent its top-level shell widget to that window. This is used to embed xterm within other applications.
98 ; __-j__ : This option indicates that ''xterm'' should do jump scrolling. Normally, text is scrolled one line at a time; this option allows ''xterm'' to move multiple lines at a time so that it does not fall as far behind. Its use is strongly recommended since it makes ''xterm'' much faster when scanning through large amounts of text. The VT100 escape sequences for enabling and disabling smooth scroll as well as the "VT Options" menu can be used to turn this feature on or off.
99 ; __+j__ : This option indicates that ''xterm'' should not do jump scrolling.
100 ; __-l__ : Turn logging on. Normally logging is not supported, due to security concerns. Some versions of ''xterm'' may have logging enabled. The logfile is written to the directory from which xterm is invoked. The filename is generated, of the form __!XtermLog.''XXXXXX''__ or __Xterm.log.''hostname.yyyy.mm.dd.hh.mm.ss.XXXXXX''__ depending on how xterm was built.
101 ; __+l__ : Turn logging off.
102 ; __-lc__ : Turn on support of various encodings according to users' LC_CTYPE locale setting, i.e., LC_ALL, LC_CTYPE, or LANG variables. This is achieved by turning on UTF-8 mode and by invoking __luit__ for conversion between locale encodings and UTF-8. (__luit__ is not invoked in UTF-8 locales.) All you need is an iso10646-1 font regardless of your locale and encoding. This corresponds to the __locale__ resource. The actual list of encodings which are supported is determined by __luit__. Consult the __luit__ : manual page for futher details.
103 ; __+lc__ : Turn off support of automatic selection of locale encodings. Conventional 8bit mode or, in UTF-8 locales or with -u8 option, UTF-8 mode will be used.
104 ; __-lcc__ ''path'' : File name for the encoding converter from/to locale encodings and UTF-8 which is used with -lc option or __locale__ resource. This corresponds to the __localeFilter__ resource.
105 ; __-leftbar__ : Force scrollbar to the left side of VT100 screen. This is the default, unless you have set the right!ScrollBar resource.
106 ; __-lf__ ''filename'' : Specify the log-filename. See the __-l__ option.
107 ; __-ls__ : This option indicates that the shell that is started in the ''xterm'' window will be a login shell (i.e., the first character of argv[[0] will be a dash, indicating to the shell that it should read the user's .login or .profile). Note that this is incompatible with __-e__, since the ''login'' program does not provide a way to specify the command to run in the new shell. If you specify both, ''xterm'' uses __-ls__.
108 ; __+ls__ : This option indicates that the shell that is started should not be a login shell (i.e. it will be a normal "subshell").
109 ; __-mb__ : This option indicates that ''xterm'' should ring a margin bell when the user types near the right end of a line. This option can be turned on and off from the "VT Options" menu.
110 ; __+mb__ : This option indicates that margin bell should not be rung.
111 ; __-mc__ ''milliseconds'' : This option specifies the maximum time between multi-click selections.
112 ; __-mesg__ : Turn off the __messages__ resource, i.e., disallow write access to the terminal.
113 ; __+mesg__ : Turn on the __messages__ resource, i.e., allow write access to the terminal.
114 ; __-ms__ ''color'' : This option specifies the color to be used for the pointer cursor. The default is to use the foreground color.
115 ; __-nb__ ''number'' : This option specifies the number of characters from the right end of a line at which the margin bell, if enabled, will ring. The default is 10.
116 ; __-nul__ : This option disables the display of underlining.
117 ; __+nul__ : This option enables the display of underlining.
118 ; __-pc__ : This option enables the PC-style use of bold colors (see boldColors resource).
119 ; __+pc__ : This option disables the PC-style use of bold colors.
120 ; __-pob__ : This option indicates that the window should be raised whenever a Control-G is received.
121 ; __+pob__ : This option indicates that the window should not be raised whenever a Control-G is received.
122 ; __-rightbar__ : Force scrollbar to the right side of VT100 screen.
123 ; __-rvc__ : This option disables the display of characters with reverse attribute as color.
124 ; __+rvc__ : This option enables the display of characters with reverse attribute as color.
125 ; __-rw__ : This option indicates that reverse-wraparound should be allowed. This allows the cursor to back up from the leftmost column of one line to the rightmost column of the previous line. This is very useful for editing long shell command lines and is encouraged. This option can be turned on and off from the "VT Options" menu.
126 ; __+rw__ : This option indicates that reverse-wraparound should not be allowed.
127 ; __-s__ : This option indicates that ''xterm'' may scroll asynchronously, meaning that the screen does not have to be kept completely up to date while scrolling. This allows ''xterm'' to run faster when network latencies are very high and is typically useful when running across a very large internet or many gateways.
128 ; __+s__ : This option indicates that ''xterm'' should scroll synchronously.
129 ; __-samename__ : Does not send title and icon name change requests when the request would have no effect: the name is not changed. This has the advantage of preventing flicker and the disadvantage of requiring an extra round trip to the server to find out the previous value. In practice this should never be a problem.
130 ; __+samename__ : Always send title and icon name change requests.
131 ; __-sb__ : This option indicates that some number of lines that are scrolled off the top of the window should be saved and that a scrollbar should be displayed so that those lines can be viewed. This option may be turned on and off from the "VT Options" menu.
132 ; __+sb__ : This option indicates that a scrollbar should not be displayed.
133 ; __-sf__ : This option indicates that Sun Function Key escape codes should be generated for function keys.
134 ; __+sf__ : This option indicates that the standard escape codes should be generated for function keys.
135 ; __-si__ : This option indicates that output to a window should not automatically reposition the screen to the bottom of the scrolling region. This option can be turned on and off from the "VT Options" menu.
136 ; __+si__ : This option indicates that output to a window should cause it to scroll to the bottom.
137 ; __-sk__ : This option indicates that pressing a key while using the scrollbar to review previous lines of text should cause the window to be repositioned automatically in the normal position at the bottom of the scroll region.
138 ; __+sk__ : This option indicates that pressing a key while using the scrollbar should not cause the window to be repositioned.
139 ; __-sl__ ''number'' : This option specifies the number of lines to save that have been scrolled off the top of the screen. The default is 64.
140 ; __-sm__ : This option, corresponding to the ''sessionMgt'' resource, indicates that ''xterm'' should set up session manager callbacks.
141 ; __+sm__ : This option indicates that ''xterm'' should not set up session manager callbacks.
142 ; __-sp__ : This option indicates that Sun/PC keyboard should be assumed, providing mapping for keypad `+' to `,', and CTRL-F1 to F13, CTRL-F2 to F14, etc.
143 ; __+sp__ : This option indicates that the standard escape codes should be generated for keypad and function keys.
144 ; __-t__ : This option indicates that ''xterm'' should start in Tektronix mode, rather than in VT102 mode. Switching between the two windows is done using the "Options" menus.
145 ; __+t__ : This option indicates that ''xterm'' should start in VT102 mode.
146 ; __-ti__ ''termid'' : Specify the name used by ''xterm'' to select the correct response to terminal ID queries. It also specifies the emulation level, used to determine the type of response to a DA control sequence. Valid values include vt52, vt100, vt101, vt102, and vt220 (the "vt" is optional). The default is vt100. The term_id argument specifies the terminal ID to use. (This is the same as the ''decTerminalID'' resource).
147 ; __-tm__ ''string'' : This option specifies a series of terminal setting keywords followed by the characters that should be bound to those functions, similar to the ''stty'' program. Allowable keywords include: intr, quit, erase, kill, eof, eol, swtch, start, stop, brk, susp, dsusp, rprnt, flush, weras, and lnext. Control characters may be specified as ^char (e.g., ^c or ^u) and ^? may be used to indicate delete (127).
148 ; __-tn__ ''name'' : This option specifies the name of the terminal type to be set in the TERM environment variable. This terminal type must exist in the ''termcap(5)'' database and should have ''li#'' and ''co#'' entries.
149 ; __-u8__ : This option sets the __utf8__ resource. When __utf8__ is set, xterm interprets incoming data as UTF-8. This sets __wideChars__ as a side-effect, but UTF-8 mode set by this option prevents it from being turned off. If you must turn it on and off, use the __wideChars__ resource. Note this option and the __utf8__ resource are overridden by the -lc and -en options and __locale__ resource. Instead, please use "-lc" option or "locale: true" resource in UTF-8 locales when your operating system supports locale, or "-en UTF-8" option or "locale: UTF-8" resource when your operating system does not support locale.
150 ; __+u8__ : This option resets the __utf8__ resource.
151 ; __-ulc__ : This option disables the display of characters with underline attribute as color rather than with underlining.
152 ; __+ulc__ : This option enables the display of characters with underline attribute as color rather than with underlining.
153 ; __-ut__ : This option indicates that ''xterm'' should not write a record into the the system ''utmp'' log file.
154 ; __+ut__ : This option indicates that ''xterm'' should write a record into the system ''utmp'' log file.
155 ; __-vb__ : This option indicates that a visual bell is preferred over an audible one. Instead of ringing the terminal bell whenever a Control-G is received, the window will be flashed.
156 ; __+vb__ : This option indicates that a visual bell should not be used.
157 ; __-wc__ : This option sets the __wideChars__ resource. When __wideChars__ is set, xterm maintains internal structures for 16-bit characters. If you do not set this resource to "true", xterm will ignore the escape sequence which turns UTF-8 mode on and off. The default is "false".
158 ; __+wc__ : This option resets the __wideChars__ resource.
159 ; __-wf__ : This option indicates that ''xterm'' should wait for the window to be mapped the first time before starting the subprocess so that the initial terminal size settings and environment variables are correct. It is the application's responsibility to catch subsequent terminal size changes.
160 ; __+wf__ : This option indicates that ''xterm'' show not wait before starting the subprocess.
161 ; __-ziconbeep__ ''percent'' : Same as zIconBeep resource. If percent is nonzero, xterms that produce output while iconified will cause an XBell sound at the given volume and have "***" prepended to their icon titles. Most window managers will detect this change immediately, showing you which window has the output. (A similar feature was in x10 xterm.)
162 ; __-C__ : This option indicates that this window should receive console output. This is not supported on all systems. To obtain console output, you must be the owner of the console device, and you must have read and write permission for it. If you are running X under ''xdm'' on the console screen you may need to have the session startup and reset programs explicitly change the ownership of the console device in order to get this option to work.
163 ; __-S__''ccn'' : This option allows ''xterm'' to be used as an input and output channel for an existing program and is sometimes used in specialized applications. The option value specifies the last few letters of the name of a pseudo-terminal to use in slave mode, plus the number of the inherited file descriptor. If the option contains a "/" character, that delimits the characters used for the pseudo-terminal name from the file descriptor. Otherwise, exactly two characters are used from the option for the pseudo-terminal name, the remainder is the file descriptor. Examples: __-S123/45 -Sab34__
164
165 The following command line arguments are provided for compatibility with older versions. They may not be supported in the next release as the X Toolkit provides standard options that accomplish the same task.
166
167 ; __%__''geom'' This option specifies the preferred size and position of the Tektronix window. It is shorthand for specifying the "''*tekGeometry''" resource.
168 ; __#__''geom'' This option specifies the preferred position of the icon window. It is shorthand for specifying the "''*iconGeometry''" resource.
169 ; __-T__ ''string'' : This option specifies the title for ''xterm'''s windows. It is equivalent to __-title__.
170 ; __-n__ ''string'' : This option specifies the icon name for ''xterm'''s windows. It is shorthand for specifying the "''*iconName''" resource. Note that this is not the same as the toolkit option __-name__ (see below). The default icon name is the application name.
171 ; __-r__ : This option indicates that reverse video should be simulated by swapping the foreground and background colors. It is equivalent to __-rv__.
172 ; __-w__ ''number'' : This option specifies the width in pixels of the border surrounding the window. It is equivalent to __-borderwidth__ or __-bw__.
173
174 The following standard X Toolkit command line arguments are commonly used with ''xterm'':
175
176 ; __-bd__ ''color'' : This option specifies the color to use for the border of the window. The default is "black."
177 ; __-bg__ ''color'' : This option specifies the color to use for the background of the window. The default is "white."
178 ; __-bw__ ''number'' : This option specifies the width in pixels of the border surrounding the window.
179 ; __-display__ ''display'' : This option specifies the X server to contact; see ''X(7)''.
180 ; __-fg__ ''color'' : This option specifies the color to use for displaying text. The default is "black."
181 ; __-fn__ ''font'' : This option specifies the font to be used for displaying normal text. The default is ''fixed''.
182 ; __-geometry__ ''geometry'' : This option specifies the preferred size and position of the VT102 window; see ''X(7)''.
183 ; __-iconic__ : This option indicates that ''xterm'' should ask the window manager to start it as an icon rather than as the normal window.
184 ; __-name__ ''name'' : This option specifies the application name under which resources are to be obtained, rather than the default executable file name. ''Name'' should not contain "." or "*" characters.
185 ; __-rv__ : This option indicates that reverse video should be simulated by swapping the foreground and background colors.
186 ; __+rv__ : Disable the simulation of reverse video by swapping foreground and background colors.
187 ; __-title__ ''string'' : This option specifies the window title string, which may be displayed by window managers if the user so chooses. The default title is the command line specified after the __-e__ option, if any, otherwise the application name.
188 ; __-xrm__ ''resourcestring'' : This option specifies a resource string to be used. This is especially useful for setting resources that do not have separate command line options.
189
190 !!! RESOURCES
191
192 The program understands all of the core X Toolkit resource names and classes as well as:
193
194 ; __backarrow!KeyIsErase (__class __!BackarrowKeyIsErase)__ : Tie the VTxxx __backarrowKey__ and __pty!InitialErase__ resources together by setting the DECBKM state according to whether the initial value of stty erase is a backspace (8) or delete (127) character. The default is "false", which disables this feature.
195 ; __hold (__class __Hold)__ : If true, xterm will not immediately destroy its window when the shell command completes. It will wait until you use the window manager to destroy/kill the window, or if you use the menu entries that send a signal, e.g., HUP or KILL. You may scroll back, select text, etc., to perform most graphical operations. Resizing the display will lose data, however, since this involves interaction with the shell which is no longer running.
196 ; __hp!FunctionKeys (__class __!HpFunctionKeys)__ : Specifies whether or not HP Function Key escape codes should be generated for function keys instead of standard escape sequences.
197 ; __iconGeometry (__class __!IconGeometry)__ : Specifies the preferred size and position of the application when iconified. It is not necessarily obeyed by all window managers.
198 ; __iconName (__class __!IconName)__ : Specifies the icon name. The default is the application name.
199 ; __messages (__class __Messages)__ : Specifies whether write access to the terminal is allowed initially. See mesg(1). The default is "true".
200 ; __pty!InitialErase (__class __!PtyInitialErase)__ : If "true'', ''xterm" will use the pseudo-terminal's sense of the stty erase value. If "false'', ''xterm'' will set the stty erase value to match its own configuration, using the __kb__ string from the termcap entry as a reference, if available. In either case, the result is applied to the TERMCAP variable which ''xterm" sets. The default is "false".
201 ; __sameName (__class __!SameName)__ : If the value of this resource is "true", xterm does not send title and icon name change requests when the request would have no effect: the name is not changed. This has the advantage of preventing flicker and the disadvantage of requiring an extra round trip to the server to find out the previous value. In practice this should never be a problem. The default is "true".
202 ; __sessionMgt (__class __!SessionMgt)__ : If the value of this resource is "true", xterm sets up session manager callbacks for __!XtNdieCallback__ and __!XtNsaveCallback__. The default is "true".
203 ; __sun!FunctionKeys (__class __!SunFunctionKeys)__ : Specifies whether or not Sun Function Key escape codes should be generated for function keys instead of standard escape sequences.
204 ; __sunKeyboard (__class __!SunKeyboard)__ : Specifies whether or not Sun/PC keyboard layout should be assumed rather than DEC VT220. This causes the keypad `+' to be mapped to `,'. and CTRL F1-F12 to F11-F20, depending on the setting of the __ctrlFKeys__ resource. so ''xterm'' emulates a DEC VT220 more accurately. Otherwise (the default, with __sunKeyboard__ set to "false''), ''xterm" uses PC-style bindings for the function keys and keypad.
205 ; __termName (__class __!TermName)__ : Specifies the terminal type name to be set in the TERM environment variable.
206 ; __title (__class __Title)__ : Specifies a string that may be used by the window manager when displaying this application.
207 ; __ttyModes (__class __!TtyModes)__ : Specifies a string containing terminal setting keywords and the characters to which they may be bound. Allowable keywords include: intr, quit, erase, kill, eof, eol, swtch, start, stop, brk, susp, dsusp, rprnt, flush, weras, lnext and status. Control characters may be specified as ^char (e.g., ^c or ^u) and __^?__ may be used to indicate delete (127). Use __^-__ to denote undef. Use __\034__ to represent __^\__, since a literal backslash in an X resource escapes the next character. This is very useful for overriding the default terminal settings without having to do an ''stty'' every time an ''xterm'' is started. Note, however, that the stty program on a given host may use different keywords; ''xterm'''s table is builtin.
208 ; __use!InsertMode (__class __!UseInsertMode)__ : Force use of insert mode by adding appropriate entries to the TERMCAP environment variable. This is useful if the system termcap is broken. The default is "false."
209 ; __utmpInhibit (__class __!UtmpInhibit)__ : Specifies whether or not ''xterm'' should try to record the user's terminal in the system ''utmp'' log file.
210 ; __wait!ForMap (__class __!WaitForMap)__ : Specifies whether or not ''xterm'' should wait for the initial window map before starting the subprocess. The default is "false."
211 ; __z!IconBeep (__class __Z!IconBeep)__ : Same as -ziconbeep command line argument. If the value of this resource is non-zero, xterms that produce output while iconified will cause an XBell sound at the given volume and have "***" prepended to their icon titles. Most window managers will detect this change immediately, showing you which window has the output. (A similar feature was in x10 ''xterm''.)
212
213 The following resources are specified as part of the ''vt100'' widget (class ''VT100''):
214
215 ; __activeIcon (__class __!ActiveIcon)__ : Specifies whether or not active icon windows are to be used when the ''xterm'' window is iconified, if this feature is compiled into ''xterm''. The active icon is a miniature representation of the content of the window and will update as the content changes. Not all window managers necessarily support application icon windows. Some window managers will allow you to enter keystrokes into the active icon window. The default is "false."
216 ; __allow!SendEvents (__class __!AllowSendEvents)__ : Specifies whether or not synthetic key and button events (generated using the X protocol !SendEvent request) should be interpreted or discarded. The default is "false" meaning they are discarded. Note that allowing such events creates a very large security hole.
217 ; __allow!WindowOps (__class __!AllowWindowOps)__ : Specifies whether extended window control sequences (as used in dtterm) for should be allowed.
218 ; __answerbackString (__class __!AnswerbackString)__ : Specifies the string that ''xterm'' sends in response to an ENQ (control/E) character from the host. The default is a blank string, i.e., "". A hardware VT100 implements this feature as a setup option.
219 ; __alwaysHighlight (__class __!AlwaysHighlight)__ : Specifies whether or not ''xterm'' should always display a highlighted text cursor. By default, a hollow text cursor is displayed whenever the pointer moves out of the window or the window loses the input focus.
220 ; __always!UseMods (__class __!AlwaysUseMods)__ : Override the __numLock__ resource, telling ''xterm'' to use the Alt and Meta modifiers as to construct parameters for function key sequences even if those modifiers appear in the translations resource.
221 ; __appcursorDefault (__class __!AppcursorDefault)__ : If "true," the cursor keys are initially in application mode. The default is "false."
222 ; __appkeypadDefault (__class __!AppkeypadDefault)__ : If "true," the keypad keys are initially in application mode. The default is "false."
223 ; __autoWrap (__class __!AutoWrap)__ : Specifies whether or not auto-wraparound should be enabled. The default is "true."
224 ; __awaitInput (__class __!AwaitInput)__ : Specifies whether or not the ''xterm'' uses a 50 millisecond timeout to await input (i.e., to support the Xaw3d arrow scrollbar). The default is "false."
225 ; __backarrowKey (__class __!BackarrowKey)__ : Specifies whether the backarrow key transmits a backspace (8) or delete (127) character. This corresponds to the DECBKM control sequence. The default (backspace) is "true." Pressing the control key toggles this behavior.
226 ; __background (__class __Background)__ : Specifies the color to use for the background of the window. The default is "white."
227 ; __bell!SuppressTime (__class __!BellSuppressTime)__ : Number of milliseconds after a bell command is sent during which additional bells will be suppressed. Default is 200. If set non-zero, additional bells will also be suppressed until the server reports that processing of the first bell has been completed; this feature is most useful with the visible bell.
228 ; __boldColors (__class __!ColorMode)__ : Specifies whether to combine bold attribute with colors like the IBM PC, i.e., map colors 0 through 7 to colors 8 through 15. These normally are the brighter versions of the first 8 colors, hence bold. The default is "true."
229 ; __boldFont (__class __!BoldFont)__ : Specifies the name of the bold font to use instead of overstriking.
230 ; __boldMode (__class __!BoldMode)__ : This specifies whether or not text with the bold attribute should be overstruck to simulate bold fonts if the resolved bold font is the same as the normal font. It may be desirable to disable bold fonts when color is being used for the bold attribute. Note that ''xterm'' has one bold font which you may set explicitly. It attempts to match a bold font for the other font selections (__font1__ through __font6__). If the normal and bold fonts are distinct, this resource has no effect.
231 ; __brokenSelections (__class __!BrokenSelections)__ : If true, ''xterm'' in 8-bit mode will interpret __STRING__ selections as carrying text in the current locale's encoding. Normally __STRING__ selections carry ISO-8859-1 encoded text. Setting this resource to "true" violates the ICCCM; it may, however, be useful for interacting with some broken X clients. The default is "false."
232 ; __c132 (__class __C132)__ : Specifies whether or not the VT102 DECCOLM escape sequence should be honored. The default is "false."
233 ; __cutNewline (__class __!CutNewline)__ : If "false", triple clicking to select a line does not include the Newline at the end of the line. If "true", the Newline is selected. The default is "true."
234 ; __cut!ToBeginningOfLine (__class __!CutToBeginningOfLine)__ : If "false", triple clicking to select a line selects only from the current word forward. If "true", the entire line is selected. The default is "true."
235 ; __cacheDoublesize (__class __!CacheDoublesize)__ : Specifies the maximum number of double-sized fonts which are cached by ''xterm''. The default (8) may be too large for some X terminals with limited memory. Set this to zero to disable doublesize fonts altogether.
236 ; __charClass (__class __!CharClass)__ : Specifies comma-separated lists of character class bindings of the form [[''low''-]''high'':''value''. These are used in determining which sets of characters should be treated the same when doing cut and paste. See the section on specifying character classes.
237 ; __cjkWidth (__class __!CjkWidth)__ : Specifies whether ''xterm'' should follow the traditional East Asian width convention. When turned on, characters with East Asian Ambiguous (A) category in UTR 11 have a column width of 2. You may have to set this option to "true" if you have some old East Asian terminal based programs that assume that line-drawing characters have a column width of 2.
238 ; __curses (__class __Curses)__ : Specifies whether or not the last column bug in ''more(1)'' should be worked around. See the __-cu__ option for details. The default is "false."
239 ; __color!AttrMode (__class __!ColorMode)__ : Specifies whether "colorBD", "colorBL", "colorUL", and "colorRV" should override ANSI colors. If not, these are displayed only when no ANSI colors have been set for the corresponding position. The default is "false."
240 ; __colorMode (__class __!ColorMode)__ : Specifies whether or not recognition of ANSI (ISO 6429) color change escape sequences should be enabled. The default is "true."
241 ; __colorBDMode (__class __!ColorMode)__ : Specifies whether characters with the bold attribute should be displayed in color or as bold characters. Note that setting __colorMode__ off disables all colors, including bold.
242 ; __colorBLMode (__class __!ColorMode)__ : Specifies whether characters with the blink attribute should be displayed in color. Note that setting __colorMode__ off disables all colors, including this.
243 ; __colorRVMode (__class __!ColorMode)__ : Specifies whether characters with the reverse attribute should be displayed in color. Note that setting __colorMode__ off disables all colors, including this.
244 ; __colorULMode (__class __!ColorMode)__ : Specifies whether characters with the underline attribute should be displayed in color or as underlined characters. Note that setting __colorMode__ off disables all colors, including underlining.
245 ; __color0 (__class __Color0)__ %%% __color1 (__class __Color1)__ %%% __color2 (__class __Color2)__ %%% __color3 (__class __Color3)__ %%% __color4 (__class __Color4)__ %%% __color5 (__class __Color5)__ %%% __color6 (__class __Color6)__ %%% __color7 (__class __Color7)__ : These specify the colors for the ISO 6429 extension. The defaults are, respectively, black, red3, green3, yellow3, blue3, magenta3, cyan3, and gray90. The default shades of color are chosen to allow the colors 8-15 to be used as brighter versions.
246 ; __color8 (__class __Color8)__ %%% __color9 (__class __Color9)__ %%% __color10 (__class __Color10)__ %%% __color11 (__class __Color11)__ %%% __color12 (__class __Color12)__ %%% __color13 (__class __Color13)__ %%% __color14 (__class __Color14)__ %%% __color15 (__class __Color15)__ : These specify the colors for the ISO 6429 extension if the bold attribute is also enabled. The default resource values are, respectively, gray30, red, green, yellow, blue, magenta, cyan, and white.
247 ; __color16 (__class __Color16)__ through __color255 (__class __Color255)__ : These specify the colors for the 256-color extension. The default resource values are for colors 16 through 231 to make a 6x6x6 color cube, and colors 232 through 255 to make a grayscale ramp.
248 ; __colorBD (__class __ColorBD)__ : This specifies the color to use to display bold characters if the "colorBDMode" resource is enabled.
249 ; __colorBL (__class __ColorBL)__ : This specifies the color to use to display blink characters if the "colorBLMode" resource is enabled.
250 ; __colorRV (__class __ColorRV)__ : This specifies the color to use to display reverse characters if the "colorRVMode" resource is enabled.
251 ; __colorUL (__class __ColorUL)__ : This specifies the color to use to display underlined characters if the "colorULMode" resource is enabled.
252 ; __ctrlFKeys (__class __CtrlFKeys)__ : In VT220 keyboard mode (see __sunKeyboard__ resource), specifies the amount by which to shift F1-F12 given a control modifier (CTRL). This allows you to generate key symbols for F10-F20 on a Sun/PC keyboard. The default is "10", which means that CTRL F1 generates the key symbol for F11.
253 ; __cursorBlink (__class __!CursorBlink)__ : Specifies whether to make the cursor blink. The default is "false."
254 ; __cursorColor (__class __!CursorColor)__ : Specifies the color to use for the text cursor. The default is "black."
255 ; __cursor!OffTime (__class __!CursorOffTime)__ : Specifies the duration of the "off" part of the cursor blink cycle-time in milliseconds. The default is 300.
256 ; __cursor!OnTime (__class __!CursorOnTime)__ : Specifies the duration of the "on" part of the cursor blink cycle-time, in milliseconds. The default is 600.
257 ; __highlightColor (__class __!HighlightColor)__ : Specifies the color to use for the background of selected or otherwise highlighted text. If not specified, reverse video is used.
258 ; __decTerminalID (__class __!DecTerminalID)__ : Specifies the emulation level (100=VT100, 220=VT220, etc.), used to determine the type of response to a DA control sequence. The default is 100.
259 ; __deleteIsDEL (__class __!DeleteIsDEL)__ : Specifies whether the Delete key on the editing keypad should send DEL (127) or the VT220-style Remove escape sequence. The default is "false," for the latter.
260 ; __dynamicColors (__class __!DynamicColors)__ : Specifies whether or not escape sequences to change colors assigned to different attributes are recognized.
261 ; __eightBitControl (__class __!EightBitControl__) Specifies whether or not control sequences sent by the terminal should be eight-bit characters or escape sequences. The default is "false."
262 ; __eightBitInput (__class __!EightBitInput__) If "true", Meta characters input from the keyboard are presented as a single character with the eighth bit turned on. The terminal is put into 8-bit mode. If "false", Meta characters are converted into a two-character sequence with the character itself preceded by ESC. The terminal is put into 7-bit mode. The __metaSendsEscape__ resource may override this. The default is "true."
263 ; __eightBitOutput (__class __!EightBitOutput__) Specifies whether or not eight-bit characters sent from the host should be accepted as is or stripped when printed. The default is "true," which means that they are accepted as is.
264 ; __faceName (__class __!FaceName)__ : Specify the pattern for fonts selected from the !FreeType library if support for that library was compiled into ''xterm''. There is no default. If not specified, or if there is no match for both normal and bold fonts, ''xterm'' uses the __font__ and related resources.
265 ; __faceSize (__class __!FaceSize)__ : Specify the pointsize for fonts selected from the !FreeType library if support for that library was compiled into ''xterm''. The default is "14."
266 ; __font (__class __Font)__ : Specifies the name of the normal font. The default is "fixed."
267 ; __font1 (__class __Font1)__ : Specifies the name of the first alternative font.
268 ; __font2 (__class __Font2)__ : Specifies the name of the second alternative font.
269 ; __font3 (__class __Font3)__ : Specifies the name of the third alternative font.
270 ; __font4 (__class __Font4)__ : Specifies the name of the fourth alternative font.
271 ; __font5 (__class __Font5)__ : Specifies the name of the fifth alternative font.
272 ; __font6 (__class __Font6)__ : Specifies the name of the sixth alternative font.
273 ; __fontDoublesize (__class __!FontDoublesize)__ : Specifies whether ''xterm'' should attempt to use font scaling to draw doublesize characters. Some older font servers cannot do this properly, will return misleading font metrics. The default is "true''. If disabled, ''xterm" will simulate doublesize characters by drawing normal characters with spaces between them.
274 ; __force!BoxChars (__class __Boolean)__ : Specifies whether ''xterm'' should assume the normal and bold fonts have VT100 line-drawing characters. If "false'', ''xterm" will check for missing characters in the 1-31 cells and make line-drawing characters directly. The default is "false."
275 ; __foreground (__class __Foreground)__ : Specifies the color to use for displaying text in the window. Setting the class name instead of the instance name is an easy way to have everything that would normally appear in the text color change color. The default is "black."
276 ; __free!BoldBox (__class __Boolean)__ : Specifies whether ''xterm'' should assume the bounding boxes for normal and bold fonts are compatible. If "false'', ''xterm" compares them and will reject choices of bold fonts that do not match the size of the normal font. The default is "false", which means that the comparison is performed.
277 ; __geometry (__class __Geometry)__ : Specifies the preferred size and position of the VT102 window.
278 ; __highlightSelection (__class __!HighlightSelection)__ : If "false", selecting with the mouse highlights all positions on the screen between the beginning of the selection and the current position. If "true'', ''xterm" highlights only the positions that contain text that can be selected. The default is "false."
279 ; Depending on the way your applications write to the screen, there may be trailing blanks on a line. ''Xterm'' stores data as it is shown on the screen. Erasing the display changes the internal state of each cell so it is not considered a blank for the purpose of selection. Blanks written since the last erase are selectable. If you do not wish to have trailing blanks in a selection, use the __trimSelection__ : resource.
280 ; __hp!LowerleftBugCompat (__class __!HpLowerleftBugCompat)__ : Specifies whether to work around a bug in HP's ''xdb'', which ignores termcap and always sends ESC F to move to the lower left corner. "true'' causes ''xterm" to interpret ESC F as a request to move to the lower left corner of the screen. The default is "false."
281 ; __i18nSelections (__class __I18nSelections)__ : If false, ''xterm'' will never request the targets __COMPOUND_TEXT__ or __TEXT__. The default is "true." It may be set to false in order to work around ICCCM violations by other X clients.
282 ; __icon!BorderColor (__class __!BorderColor)__ : Specifies the border color for the active icon window if this feature is compiled into ''xterm''. Not all window managers will make the icon border visible.
283 ; __icon!BorderWidth (__class __!BorderWidth)__ : Specifies the border width for the active icon window if this feature is compiled into ''xterm''. The default is 0 (no border). Not all window managers will make the border visible.
284 ; __iconFont (__class __!IconFont)__ : Specifies the font for the miniature active icon window, if this feature is compiled into ''xterm''. The default is "nil2".
285 ; __internalBorder (__class __!BorderWidth)__ : Specifies the number of pixels between the characters and the window border. The default is 2.
286 ; __jumpScroll (__class __!JumpScroll)__ : Specifies whether or not jump scroll should be used. The default is "true."
287 ; __keyboardDialect (__class __!KeyboardDialect)__ : Specifies the initial keyboard dialect, as well as the default value when the terminal is reset. The value given is the same as the final character in the control sequences which change character sets. The default is "B", which corresponds to US ASCII.
288 ; __limitResize (__class __!LimitResize)__ : Limits resizing of the screen via control sequence to a given multiple of the display dimensions. The default is "1".
289 ; __locale (__class __Locale)__ : Specifies how to use __luit__, an encoding converter between UTF-8 and locale encodings. If this is "true'', ''xterm" will use the encoding specified by the users' LC_CTYPE locale (i.e., LC_ALL, LC_CTYPE, or LANG variables) as far as possible. This is realized by always enabling UTF-8 mode and invoking __luit__ in non-UTF-8 locales. If this is "medium'', ''xterm'' will follow users' LC_CTYPE locale only for UTF-8, east Asian, and Thai locales, where the encodings were not supported by conventional 8bit mode with changing fonts. For other locales, ''xterm" will use conventional 8bit mode. If this is "no'', ''xterm" will use conventional 8bit mode or UTF-8 mode according to __utf8__ resource or -u8 option. Any other value such as "UTF-8" and "ISO8859-2" will be assumed to be an encoding name; __luit__ will be invoked to support the encoding. The actual list of supported encodings depends on __luit__. The default is "medium".
290 ; __localeFilter (__class __!LocaleFilter)__ : Specifies the file name for the encoding converter from/to locale encodings and UTF-8 which is used with the __-lc__ option or __locale__ resource. The help message shown by "xterm -help" lists the default value, which depends on your system configuration.
291 ; __loginShell (__class __!LoginShell)__ : Specifies whether or not the shell to be run in the window should be started as a login shell. The default is "false."
292 ; __marginBell (__class __!MarginBell)__ : Specifies whether or not the bell should be run when the user types near the right margin. The default is "false."
293 ; __meta!SendsEscape (__class __!MetaSendsEscape__) If "true'', Meta characters are converted into a two-character sequence with the character itself preceded by ESC. This applies as well to function key control sequences, unless ''xterm" sees that __Meta__ : is used in your key translations. If "false", Meta characters input from the keyboard are handled according to the __eight!BitInput__ resource. The default is "false."
294 ; __modify!CursorKeys (__class __!ModifyCursorKeys__) Tells how to handle the special case where control-, shift-, alt- or meta-modifiers are used to add a parameter to the escape sequence returned by a cursor-key. Set it to 0 to use the old/obsolete behavior. Set it to 1 to prefix modified sequences with CSI. Set it to 2 to force the modifier to be the second parameter. Set it to 3 to mark the sequence with a '>' to hint that it is private. The default is "2".
295 ; __multi!ClickTime (__class __!MultiClickTime)__ : Specifies the maximum time in milliseconds between multi-click select events. The default is 250 milliseconds.
296 ; __multiScroll (__class __!MultiScroll)__ : Specifies whether or not scrolling should be done asynchronously. The default is "false."
297 ; __n!MarginBell (__class __Column)__ : Specifies the number of characters from the right margin at which the margin bell should be rung, when enabled.
298 ; __numLock (__class __!NumLock)__ : If "true'', ''xterm'' checks if !NumLock is used as a modifier (see ''xmodmap(1)"). If so, this modifier is used to simplify the logic when implementing special !NumLock for the __sunKeyboard__ resource. Also (when __sunKeyboard__ is false), similar logic is used to find the modifier associated with the left and right Alt keys. The default is "true."
299 ; __oldXtermFKeys (__class __!OldXtermFKeys)__ : If "true'', ''xterm'' will use old-style control sequences for function keys F1 to F4, for compatibility with X Consortium ''xterm". Otherwise, it uses the VT100-style codes for PF1 to PF4. The default is "false."
300 ; __pointerColor (__class __!PointerColor)__ : Specifies the foreground color of the pointer. The default is "!XtDefaultForeground."
301 ; __pointer!ColorBackground (__class __!PointerColorBackground)__ : Specifies the background color of the pointer. The default is "!XtDefaultBackground."
302 ; __pointerShape (__class __Cursor)__ : Specifies the name of the shape of the pointer. The default is "xterm."
303 ; __pop!OnBell (__class __!PopOnBell)__ : Specifies whether the window whould be raised when Control-G is received. The default is "false."
304 ; __printAttributes (__class __!PrintAttributes)__ : Specifies whether to print graphic attributes along with the text. A real DEC VTxxx terminal will print the underline, highlighting codes but your printer may not handle these. A "0" disables the attributes. A "1" prints the normal set of attributes (bold, underline, inverse and blink) as VT100-style control sequences. A "2" prints ANSI color attributes as well. The default is "1."
305 ; __printer!AutoClose (__class __!PrinterAutoClose)__ : If "true'', ''xterm" will close the printer (a pipe) when the application switches the printer offline with a Media Copy command. The default is "false."
306 ; __printerCommand (__class __!PrinterCommand)__ : Specifies a shell command to which ''xterm'' will open a pipe when the first MC (Media Copy) command is initiated. The default is "lpr." If the resource value is given as a blank string, the printer is disabled.
307 ; __printer!ControlMode (__class __!PrinterControlMode)__ : Specifies the printer control mode. A "1'' selects autoprint mode, which causes ''xterm" to print a line from the screen when you move the cursor off that line with a line feed, form feed or vertical tab character, or an autowrap occurs. Autoprint mode is overridden by printer controller mode (a "2"), which causes all of the output to be directed to the printer. The default is "0."
308 ; __printerExtent (__class __!PrinterExtent)__ : Controls whether a print page function will print the entire page (true), or only the the portion within the scrolling margins (false). The default is "false."
309 ; __printer!FormFeed (__class __!PrinterFormFeed)__ : Controls whether a form feed is sent to the printer at the end of a print page function. The default is "false."
310 ; __resizeGravity (__class __!ResizeGravity)__ : Affects the behavior when the window is resized to be taller or shorter. __!NorthWest__ specifies that the top line of text on the screen stay fixed. If the window is made shorter, lines are dropped from the bottom; if the window is made taller, blank lines are added at the bottom. This is compatible with the behavior in R4. __!SouthWest__ (the default) specifies that the bottom line of text on the screen stay fixed. If the window is made taller, additional saved lines will be scrolled down onto the screen; if the window is made shorter, lines will be scrolled off the top of the screen, and the top saved lines will be dropped.
311 ; __reverseVideo (__class __!ReverseVideo)__ : Specifies whether or not reverse video should be simulated. The default is "false."
312 ; __reverseWrap (__class __!ReverseWrap)__ : Specifies whether or not reverse-wraparound should be enabled. The default is "false."
313 ; __right!ScrollBar (__class __!RightScrollBar)__ : Specifies whether or not the scrollbar should be displayed on the right rather than the left. The default is "false."
314 ; __saveLines (__class __!SaveLines)__ : Specifies the number of lines to save beyond the top of the screen when a scrollbar is turned on. The default is 64.
315 ; __scrollBar (__class __!ScrollBar)__ : Specifies whether or not the scrollbar should be displayed. The default is "false."
316 ; __scrollKey (__class __!ScrollCond)__ : Specifies whether or not pressing a key should automatically cause the scrollbar to go to the bottom of the scrolling region. The default is "false."
317 ; __scrollLines (__class __!ScrollLines)__ : Specifies the number of lines that the ''scroll-back'' and ''scroll-forw'' actions should use as a default. The default value is 1.
318 ; __scroll!TtyOutput (__class __!ScrollCond)__ : Specifies whether or not output to the terminal should automatically cause the scrollbar to go to the bottom of the scrolling region. The default is "true."
319 ; __shiftFonts (__class __!ShiftFonts)__ : Specifies whether to enable the actions __larger-vtfont()__ and __smaller-vt-font()__, which are normally bound to the shifted KP_Add and KP_Subtract. The default is "true."
320 ; __signalInhibit (__class __!SignalInhibit)__ : Specifies whether or not the entries in the "Main Options'' menu for sending signals to ''xterm" should be disallowed. The default is "false."
321 ; __tekGeometry (__class __Geometry)__ : Specifies the preferred size and position of the Tektronix window.
322 ; __tekInhibit (__class __!TekInhibit)__ : Specifies whether or not the escape sequence to enter Tektronix mode should be ignored. The default is "false."
323 ; __tekSmall (__class __!TekSmall)__ : Specifies whether or not the Tektronix mode window should start in its smallest size if no explicit geometry is given. This is useful when running ''xterm'' on displays with small screens. The default is "false."
324 ; __tekStartup (__class __!TekStartup)__ : Specifies whether or not ''xterm'' should start up in Tektronix mode. The default is "false."
325 ; __titeInhibit (__class __!TiteInhibit)__ : Specifies whether or not ''xterm'' should remove ''ti'' and ''te'' termcap entries (used to switch between alternate screens on startup of many screen-oriented programs) from the TERMCAP string. If set, ''xterm'' also ignores the escape sequence to switch to the alternate screen. ''Xterm'' supports terminfo in a different way, supporting composite control sequences (also known as private modes) 1047, 1048 and 1049 which have the same effect as the original 47 control sequence.
326 ; __ti!XtraScroll (__class __!TiXtraScroll)__ : Specifies whether ''xterm'' should scroll to a new page when processing the ''ti'' termcap entry, i.e., the private modes 47, 1047 or 1049. This is only in effect if ''titeInhibit'' is "true", because the intent of this option is to provide a picture of the full-screen application's display on the scrollback without wiping out the text that would be shown before the application was initialized. The default for this resource is "false."
327 ; __translations (__class __Translations)__ : Specifies the key and button bindings for menus, selections, "programmed strings," etc. See __ACTIONS__ below.
328 ; __trimSelection (__class __!TrimSelection)__ : If you set __highlightSelection__, you can see the text which is selected, including any trailing spaces. Clearing the screen (or a line) resets it to a state containing no spaces. Some lines may contain trailing spaces when an application writes them to the screen. However, you may not wish to paste lines with trailing spaces. If this resource is true, ''xterm'' will trim trailing spaces from text which is selected. It does not affect spaces which result in a wrapped line, nor will it trim the trailing newline from your selection. The default is "false."
329 ; __underLine (__class __!UnderLine)__ : This specifies whether or not text with the underline attribute should be underlined. It may be desirable to disable underlining when color is being used for the underline attribute.
330 ; __utf8 (__class __Utf8)__ : This specifies whether ''xterm'' will run in UTF-8 mode. If you set this resource, ''xterm'' also sets the __wideChars__ resource as a side-effect. When set via a resource, ''xterm'' cannot be switched via control sequences out of UTF-8 mode. The default is "0" (off). Any other value will turn on UTF-8 mode. See the __locale__ resource for non-UTF-8 locales.
331 ; __very!BoldColors (__class __!ColorMode)__ : Specifies whether to combine video attributes with colors specified by __colorBD__, __colorBL__ and __colorUL__. The resource value is the sum of values for each attribute: 2 for underline, 4 for bold and 8 for blink. The default is "0."
332 ; __visualBell (__class __!VisualBell)__ : Specifies whether or not a visible bell (i.e., flashing) should be used instead of an audible bell when Control-G is received. The default is "false."
333 ; __vt100Graphics (__class __VT100Graphics)__ : This specifies whether ''xterm'' will interpret VT100 graphic character escape sequences while in UTF-8 mode. The default is "true", to provide support for various legacy applications.
334 ; __wide!BoldFont (__class __!WideBoldFont)__ : This option specifies the font to be used for displaying bold wide text. By default, it will attempt to use a font twice as wide as the font that will be used to draw bold text. If no doublewidth font is found, it will improvise, by stretching the bold font.
335 ; __wideChars (__class __!WideChars)__ : Specifies if ''xterm'' should respond to control sequences that process 16-bit characters.
336 ; __wideFont (__class __!WideFont)__ : This option specifies the font to be used for displaying wide text. By default, it will attempt to use a font twice as wide as the font that will be used to draw normal text. If no doublewidth font is found, it will improvise, by stretching the normal font.
337 ; __ximFont (__class __!XimFont)__ : This option specifies the font to be used for displaying the preedit string in the "!OverTheSpot" input method.
338
339 In "!OverTheSpot" preedit type, the preedit (preconversion) string is displayed at the position of the cursor. It is the XIM server's responsibility to display the preedit string. The XIM client must inform the XIM server of the cursor position. For best results, the preedit string must be displayed with a proper font. Therefore, ''xterm'' informs the XIM server of the proper font. The font is be supplied by a "fontset", whose default value is "*". This matches every font, the X library automatically chooses fonts with proper charsets. The __ximFont__ resource is provided to override this default font setting.
340
341 The following resources are specified as part of the ''tek4014'' widget (class ''Tek4014''):
342
343 ; __font2 (__class __Font)__ : Specifies font number 2 to use in the Tektronix window.
344 ; __font3 (__class __Font)__ : Specifies font number 3 to use in the Tektronix window.
345 ; __fontLarge (__class __Font)__ : Specifies the large font to use in the Tektronix window.
346 ; __fontSmall (__class __Font)__ : Specifies the small font to use in the Tektronix window.
347 ; __ginTerminator (__class __!GinTerminator)__ : Specifies what character(s) should follow a GIN report or status report. The possibilities are "none," which sends no terminating characters, "CRonly," which sends CR, and "CR&EOT," which sends both CR and EOT. The default is "none."
348 ; __height (__class __Height)__ : Specifies the height of the Tektronix window in pixels.
349 ; __initialFont (__class __!InitialFont)__ : Specifies which of the four Tektronix fonts to use initially. Values are the same as for the ''settek-text'' action. The default is "large."
350 ; __width (__class __Width)__ : Specifies the width of the Tektronix window in pixels.
351
352 The resources that may be specified for the various menus are described in the documentation for the Athena __!SimpleMenu__ widget. The name and classes of the entries in each of the menus are listed below. Resources named "__line__''N''" where ''N'' is a number are separators with class __!SmeLine__.
353
354 The ''mainMenu'' has the following entries:
355
356 ; __securekbd (__class __SmeBSB)__ : This entry invokes the __secure()__ action.
357 ; __allowsends (__class __SmeBSB)__ : This entry invokes the __allow-send-events(toggle)__ action.
358 ; __redraw (__class __SmeBSB)__ : This entry invokes the __redraw()__ action.
359 ; __logging (__class __SmeBSB)__ : This entry invokes the __logging(toggle)__ action.
360 ; __print (__class __SmeBSB)__ : This entry invokes the __print()__ action.
361 ; __print-redir (__class __SmeBSB)__ : This entry invokes the __print-redir()__ action.
362 ; __8-bit-control (__class __SmeBSB)__ : This entry invokes the __set-8-bit-control(toggle)__ action.
363 ; __backarrow key (__class __SmeBSB)__ : This entry invokes the __set-backarrow(toggle)__ action.
364 ; __num-lock (__class __SmeBSB)__ : This entry invokes the __set-num-lock(toggle)__ action.
365 ; __meta-esc (__class __SmeBSB)__ : This entry invokes the __meta-sends-escape(toggle)__ action.
366 ; __delete-is-del (__class __SmeBSB)__ : This entry invokes the __delete-is-del(toggle)__ action.
367 ; __old!FunctionKeys (__class __SmeBSB)__ : This entry invokes the __old-function-keys(toggle)__ action.
368 ; __hp!FunctionKeys (__class __SmeBSB)__ : This entry invokes the __hp-function-keys(toggle)__ action.
369 ; __sco!FunctionKeys (__class __SmeBSB)__ : This entry invokes the __sco-function-keys(toggle)__ action.
370 ; __sun!FunctionKeys (__class __SmeBSB)__ : This entry invokes the __sun-function-keys(toggle)__ action.
371 ; __sunKeyboard (__class __SmeBSB)__ : This entry invokes the __sunKeyboard(toggle)__ action.
372 ; __suspend (__class __SmeBSB)__ : This entry invokes the __send-signal(tstp)__ action on systems that support job control.
373 ; __continue (__class __SmeBSB)__ : This entry invokes the __send-signal(cont)__ action on systems that support job control.
374 ; __interrupt (__class __SmeBSB)__ : This entry invokes the __send-signal(int)__ action.
375 ; __hangup (__class __SmeBSB)__ : This entry invokes the __send-signal(hup)__ action.
376 ; __terminate (__class __SmeBSB)__ : This entry invokes the __send-signal(term)__ action.
377 ; __kill (__class __SmeBSB)__ : This entry invokes the __send-signal(kill)__ action.
378 ; __quit (__class __SmeBSB)__ : This entry invokes the __quit()__ action.
379 ; The ''vtMenu'' has the following entries:
380 ; __scrollbar (__class __SmeBSB)__ : This entry invokes the __set-scrollbar(toggle)__ action.
381 ; __jumpscroll (__class __SmeBSB)__ : This entry invokes the __set-jumpscroll(toggle)__ action.
382 ; __reversevideo (__class __SmeBSB)__ : This entry invokes the __set-reverse-video(toggle)__ action.
383 ; __autowrap (__class __SmeBSB)__ : This entry invokes the __set-autowrap(toggle)__ action.
384 ; __reversewrap (__class __SmeBSB)__ : This entry invokes the __set-reversewrap(toggle)__ action.
385 ; __autolinefeed (__class __SmeBSB)__ : This entry invokes the __set-autolinefeed(toggle)__ action.
386 ; __appcursor (__class __SmeBSB)__ : This entry invokes the __set-appcursor(toggle)__ action.
387 ; __appkeypad (__class __SmeBSB)__ : This entry invokes the __set-appkeypad(toggle)__ action.
388 ; __scrollkey (__class __SmeBSB)__ : This entry invokes the __set-scroll-on-key(toggle)__ action.
389 ; __scrollttyoutput (__class __SmeBSB)__ : This entry invokes the __set-scroll-on-tty-output(toggle)__ action.
390 ; __allow132 (__class __SmeBSB)__ : This entry invokes the __set-allow132(toggle)__ action.
391 ; __cursesemul (__class __SmeBSB)__ : This entry invokes the __set-cursesemul(toggle)__ action.
392 ; __visualbell (__class __SmeBSB)__ : This entry invokes the __set-visualbell(toggle)__ action.
393 ; __poponbell (__class __SmeBSB)__ : This entry invokes the __set-poponbell(toggle)__ action.
394 ; __marginbell (__class __SmeBSB)__ : This entry invokes the __set-marginbell(toggle)__ action.
395 ; __cursorblink (__class __SmeBSB)__ : This entry invokes the __set-cursorblink(toggle)__ action.
396 ; __titeInhibit (__class __SmeBSB)__ : This entry invokes the __set-titeInhibit(toggle)__ action.
397 ; __activeicon (__class __SmeBSB)__ : This entry toggles active icons on and off if this feature was compiled into ''xterm''. It is enabled only if ''xterm'' was started with the command line option +ai or the __activeIcon__ resource is set to "True."
398 ; __softreset (__class __SmeBSB)__ : This entry invokes the __soft-reset()__ action.
399 ; __hardreset (__class __SmeBSB)__ : This entry invokes the __hard-reset()__ action.
400 ; __clearsavedlines (__class __SmeBSB)__ : This entry invokes the __clear-saved-lines()__ action.
401 ; __tekshow (__class __SmeBSB)__ : This entry invokes the __set-visibility(tek,toggle)__ action.
402 ; __tekmode (__class __SmeBSB)__ : This entry invokes the __set-terminal-type(tek)__ action.
403 ; __vthide (__class __SmeBSB)__ : This entry invokes the __set-visibility(vt,off)__ action.
404 ; __altscreen (__class __SmeBSB)__ : This entry invokes the __set-altscreen(toggle)__ action.
405
406 The ''fontMenu'' has the following entries:
407
408 ; __fontdefault (__class __SmeBSB)__ : This entry invokes the __set-vt-font(d)__ action.
409 ; __font1 (__class __SmeBSB)__ : This entry invokes the __set-vt-font(1)__ action.
410 ; __font2 (__class __SmeBSB)__ : This entry invokes the __set-vt-font(2)__ action.
411 ; __font3 (__class __SmeBSB)__ : This entry invokes the __set-vt-font(3)__ action.
412 ; __font4 (__class __SmeBSB)__ : This entry invokes the __set-vt-font(4)__ action.
413 ; __font5 (__class __SmeBSB)__ : This entry invokes the __set-vt-font(5)__ action.
414 ; __font6 (__class __SmeBSB)__ : This entry invokes the __set-vt-font(6)__ action.
415 ; __fontescape (__class __SmeBSB)__ : This entry invokes the __set-vt-font(e)__ action.
416 ; __fontsel (__class __SmeBSB)__ : This entry invokes the __set-vt-font(s)__ action.
417 ; __font-linedrawing (__class __SmeBSB)__ : This entry invokes the __set-font-linedrawing(s)__ action.
418 ; __font-doublesize (__class __SmeBSB)__ : This entry invokes the __set-font-doublesize(s)__ action.
419
420 The ''tekMenu'' has the following entries:
421
422 ; __tektextlarge (__class __SmeBSB)__ : This entry invokes the __set-tek-text(l)__ action.
423 ; __tektext2 (__class __SmeBSB)__ : This entry invokes the __set-tek-text(2)__ action.
424 ; __tektext3 (__class __SmeBSB)__ : This entry invokes the __set-tek-text(3)__ action.
425 ; __tektextsmall (__class __SmeBSB)__ : This entry invokes the __set-tek-text(s)__ action.
426 ; __tekpage (__class __SmeBSB)__ : This entry invokes the __tek-page()__ action.
427 ; __tekreset (__class __SmeBSB)__ : This entry invokes the __tek-reset()__ action.
428 ; __tekcopy (__class __SmeBSB)__ : This entry invokes the __tek-copy()__ action.
429 ; __vtshow (__class __SmeBSB)__ : This entry invokes the __set-visibility(vt,toggle)__ action.
430 ; __vtmode (__class __SmeBSB)__ : This entry invokes the __set-terminal-type(vt)__ action.
431 ; __tekhide (__class __SmeBSB)__ : This entry invokes the __set-visibility(tek,toggle)__ action.
432 ; The following resources are useful when specified for the Athena Scrollbar widget:
433 ; __thickness (__class __Thickness)__ : Specifies the width in pixels of the scrollbar.
434 ; __background (__class __Background)__ : Specifies the color to use for the background of the scrollbar.
435 ; __foreground (__class __Foreground)__ : Specifies the color to use for the foreground of the scrollbar. The "thumb" of the scrollbar is a simple checkerboard pattern alternating pixels for foreground and background color.
436
437 !!! POINTER USAGE
438
439 Once the VT102 window is created, ''xterm'' allows you to select text and copy it within the same or other windows.
440
441 The selection functions are invoked when the pointer buttons are used with no modifiers, and when they are used with the "shift" key. The assignment of the functions described below to keys and buttons may be changed through the resource database; see __ACTIONS__ below.
442
443 Pointer button one (usually left) is used to save text into the cut buffer. Move the cursor to beginning of the text, and then hold the button down while moving the cursor to the end of the region and releasing the button. The selected text is highlighted and is saved in the global cut buffer and made the PRIMARY selection when the button is released. Double-clicking selects by words. Triple-clicking selects by lines. Quadruple-clicking goes back to characters, etc. Multiple-click is determined by the time from button up to button down, so you can change the selection unit in the middle of a selection. Logical words and lines selected by double- or triple-clicking may wrap across more than one screen line if lines were wrapped by ''xterm'' itself rather than by the application running in the window. If the key/button bindings specify that an X selection is to be made, ''xterm'' will leave the selected text highlighted for as long as it is the selection owner.
444
445 Pointer button two (usually middle) `types' (pastes) the text from the PRIMARY selection, if any, otherwise from the cut buffer, inserting it as keyboard input.
446
447 Pointer button three (usually right) extends the current selection. (Without loss of generality, you can swap "right" and "left'' everywhere in the rest of this paragraph.) If pressed while closer to the right edge of the selection than the left, it extends/contracts the right edge of the selection. If you contract the selection past the left edge of the selection, ''xterm" assumes you really meant the left edge, restores the original selection, then extends/contracts the left edge of the selection. Extension starts in the selection unit mode that the last selection or extension was performed in; you can multiple-click to cycle through them.
448
449 By cutting and pasting pieces of text without trailing new lines, you can take text from several places in different windows and form a command to the shell, for example, or take output from a program and insert it into your favorite editor. Since the cut buffer is globally shared among different applications, you should regard it as a `file' whose contents you know. The terminal emulator and other text programs should be treating it as if it were a text file, i.e., the text is delimited by new lines.
450
451 The scroll region displays the position and amount of text currently showing in the window (highlighted) relative to the amount of text actually saved. As more text is saved (up to the maximum), the size of the highlighted area decreases.
452
453 Clicking button one with the pointer in the scroll region moves the adjacent line to the top of the display window.
454
455 Clicking button three moves the top line of the display window down to the pointer position.
456
457 Clicking button two moves the display to a position in the saved text that corresponds to the pointer's position in the scrollbar.
458
459 Unlike the VT102 window, the Tektronix window does not allow the copying of text. It does allow Tektronix GIN mode, and in this mode the cursor will change from an arrow to a cross. Pressing any key will send that key and the current coordinate of the cross cursor. Pressing button one, two, or three will return the letters `l', `m', and `r', respectively. If the `shift' key is pressed when a pointer button is pressed, the corresponding upper case letter is sent. To distinguish a pointer button from a key, the high bit of the character is set (but this is bit is normally stripped unless the terminal mode is RAW; see ''tty(4)'' for details).
460
461 !!! MENUS
462
463 ''Xterm'' has four menus, named ''mainMenu'', ''vtMenu'', ''fontMenu'', and ''tekMenu''. Each menu pops up under the correct combinations of key and button presses. Most menus are divided into two section, separated by a horizontal line. The top portion contains various modes that can be altered. A check mark appears next to a mode that is currently active. Selecting one of these modes toggles its state. The bottom portion of the menu are command entries; selecting one of these performs the indicated function.
464
465 The ''xterm'' menu pops up when the "control" key and pointer button one are pressed in a window. The ''mainMenu'' contains items that apply to both the VT102 and Tektronix windows. The __Secure Keyboard__ mode is be used when typing in passwords or other sensitive data in an unsecure environment; see __SECURITY__ below. Notable entries in the command section of the menu are the __Continue__, __Suspend__, __Interrupt__, __Hangup__, __Terminate__ and __Kill__ which sends the SIGCONT, SIGTSTP, SIGINT, SIGHUP, SIGTERM and SIGKILL signals, respectively, to the process group of the process running under ''xterm'' (usually the shell). The __Continue__ function is especially useful if the user has accidentally typed CTRL- Z, suspending the process.
466
467 The ''vtMenu'' sets various modes in the VT102 emulation, and is popped up when the "control" key and pointer button two are pressed in the VT102 window. In the command section of this menu, the soft reset entry will reset scroll regions. This can be convenient when some program has left the scroll regions set incorrectly (often a problem when using VMS or TOPS-20). The full reset entry will clear the screen, reset tabs to every eight columns, and reset the terminal modes (such as wrap and smooth scroll) to their initial states just after ''xterm'' has finished processing the command line options.
468
469 The ''fontMenu'' sets the font used in the VT102 window. In addition to the default font and a number of alternatives that are set with resources, the menu offers the font last specified by the Set Font escape sequence (see the document ''Xterm Control Sequences'') and the current selection as a font name (if the PRIMARY selection is owned).
470
471 The ''tekMenu'' sets various modes in the Tektronix emulation, and is popped up when the "control" key and pointer button two are pressed in the Tektronix window. The current font size is checked in the modes section of the menu. The __PAGE__ entry in the command section clears the Tektronix window.
472
473 !!! SECURITY
474
475 X environments differ in their security consciousness. Most servers, run under ''xdm'', are capable of using a "magic cookie" authorization scheme that can provide a reasonable level of security for many people. If your server is only using a host-based mechanism to control access to the server (see ''xhost(1)''), then if you enable access for a host and other users are also permitted to run clients on that same host, there is every possibility that someone can run an application that will use the basic services of the X protocol to snoop on your activities, potentially capturing a transcript of everything you type at the keyboard. This is of particular concern when you want to type in a password or other sensitive data. The best solution to this problem is to use a better authorization mechanism that host-based control, but a simple mechanism exists for protecting keyboard input in ''xterm''.
476
477 The ''xterm'' menu (see __MENUS__ above) contains a __Secure Keyboard__ entry which, when enabled, ensures that all keyboard input is directed ''only'' to ''xterm'' (using the !GrabKeyboard protocol request). When an application prompts you for a password (or other sensitive data), you can enable __Secure__ __Keyboard__ using the menu, type in the data, and then disable __Secure Keyboard__ using the menu again. Only one X client at a time can secure the keyboard, so when you attempt to enable __Secure Keyboard__ it may fail. In this case, the bell will sound. If the __Secure Keyboard__ succeeds, the foreground and background colors will be exchanged (as if you selected the __Reverse Video__ entry in the __Modes__ menu); they will be exchanged again when you exit secure mode. If the colors do ''not'' switch, then you should be ''very'' suspicious that you are being spoofed. If the application you are running displays a prompt before asking for the password, it is safest to enter secure mode ''before'' the prompt gets displayed, and to make sure that the prompt gets displayed correctly (in the new colors), to minimize the probability of spoofing. You can also bring up the menu again and make sure that a check mark appears next to the entry.
478
479 __Secure Keyboard__ mode will be disabled automatically if your xterm window becomes iconified (or otherwise unmapped), or if you start up a reparenting window manager (that places a title bar or other decoration around the window) while in __Secure Keyboard__ mode. (This is a feature of the X protocol not easily overcome.) When this happens, the foreground and background colors will be switched back and the bell will sound in warning.
480
481 !!! CHARACTER CLASSES
482
483 Clicking the middle mouse button twice in rapid succession will cause all characters of the same class (e.g., letters, white space, punctuation) to be selected. Since different people have different preferences for what should be selected (for example, should filenames be selected as a whole or only the separate subnames), the default mapping can be overridden through the use of the ''charClass'' (class ''!CharClass'') resource.
484
485 This resource is a series of comma-separated of ''range'':''value'' pairs. The ''range'' is either a single number or ''low''-''high'' in the range of 0 to 65535, corresponding to the code for the character or characters to be set. The ''value'' is arbitrary, although the default table uses the character number of the first character occurring in the set. When not in UTF-8 mode, only the first 256 bytes of this table will be used.
486
487 The default table starts as follows -
488
489 static int charClass[[256] = {
490 32, 1, 1, 1, 1, 1, 1, 1,
491 1, 32, 1, 1, 1, 1, 1, 1,
492 1, 1, 1, 1, 1, 1, 1, 1,
493 1, 1, 1, 1, 1, 1, 1, 1,
494 32, 33, 34, 35, 36, 37, 38, 39,
495 40, 41, 42, 43, 44, 45, 46, 47,
496 48, 48, 48, 48, 48, 48, 48, 48,
497 48, 48, 58, 59, 60, 61, 62, 63,
498 64, 48, 48, 48, 48, 48, 48, 48,
499 48, 48, 48, 48, 48, 48, 48, 48,
500 48, 48, 48, 48, 48, 48, 48, 48,
501 48, 48, 48, 91, 92, 93, 94, 48,
502 96, 48, 48, 48, 48, 48, 48, 48,
503 48, 48, 48, 48, 48, 48, 48, 48,
504 48, 48, 48, 48, 48, 48, 48, 48,
505 48, 48, 48, 123, 124, 125, 126, 1,
506 1, 1, 1, 1, 1, 1, 1, 1,
507 1, 1, 1, 1, 1, 1, 1, 1,
508 1, 1, 1, 1, 1, 1, 1, 1,
509 1, 1, 1, 1, 1, 1, 1, 1,
510 160, 161, 162, 163, 164, 165, 166, 167,
511 168, 169, 170, 171, 172, 173, 174, 175,
512 176, 177, 178, 179, 180, 181, 182, 183,
513 184, 185, 186, 187, 188, 189, 190, 191,
514 48, 48, 48, 48, 48, 48, 48, 48,
515 48, 48, 48, 48, 48, 48, 48, 48,
516 48, 48, 48, 48, 48, 48, 48, 215,
517 48, 48, 48, 48, 48, 48, 48, 48,
518 48, 48, 48, 48, 48, 48, 48, 48,
519 48, 48, 48, 48, 48, 48, 48, 48,
520 48, 48, 48, 48, 48, 48, 48, 247,
521 48, 48, 48, 48, 48, 48, 48, 48};
522
523 For example, the string "33:48,37:48,45-47:48,64:48" indicates that the exclamation mark, percent sign, dash, period, slash, and ampersand characters should be treated the same way as characters and numbers. This is useful for cutting and pasting electronic mailing addresses and filenames.
524
525 !!! ACTIONS
526
527 It is possible to rebind keys (or sequences of keys) to arbitrary strings for input, by changing the translations for the vt100 or tek4014 widgets. Changing the translations for events other than key and button events is not expected, and will cause unpredictable behavior. The following actions are provided for using within the ''vt100'' or ''tek4014'' __translations__ resources:
528
529 ; __allow-send-events(__''on/off/toggle''__)__ : This action set or toggles the __allow!SendEvents__ resource and is also invoked by the __allowsends__ entry in ''mainMenu''.
530 ; __bell([[__''percent''__])__ : This action rings the keyboard bell at the specified percentage above or below the base volume.
531 ; __clear-saved-lines()__ : This action does __hard-reset()__ (see below) and also clears the history of lines saved off the top of the screen. It is also invoked from the __clearsavedlines__ entry in ''vtMenu''. The effect is identical to a hardware reset (RIS) control sequence.
532 ; __create-menu(__''m/v/f/t''__)__ : This action creates one of the menus used by ''xterm'', if it has not been previously created. The parameter values are the menu names: ''mainMenu'', ''vtMenu'', ''fontMenu'', ''tekMenu'', respectively.
533 ; __deiconify()__ : Changes the window state back to normal, if it was iconified.
534 ; __delete-is-del()__ : This action toggles the state of the __deleteIsDEL__ resource.
535 ; __dired-button()__ : Handles a button event (other than press and release) by echoing the event's position (i.e., character line and column) in the following format: __^X ESC G <line+' '> <col+' '>__
536 ; __iconify()__ : Iconifies the window.
537 ; __hard-reset()__ : This action resets the scrolling region, tabs, window size, and cursor keys and clears the screen. It is also invoked from the __hardreset__ entry in ''vtMenu''.
538 ; __ignore()__ : This action ignores the event but checks for special pointer position escape sequences.
539 ; __insert()__ : This action inserts the character or string associated with the key that was pressed.
540 ; __insert-eight-bit()__ : This action inserts an eight-bit (Meta) version of the character or string associated with the key that was pressed. The exact action depends on the value of the __meta!SendsEscape__ and the __eight!BitInput__ resources.
541 ; __insert-selection(__''sourcename'' __[[, ...])__ : This action inserts the string found in the selection or cutbuffer indicated by ''sourcename''. Sources are checked in the order given (case is significant) until one is found. Commonly-used selections include: ''PRIMARY'', ''SECONDARY'', and ''CLIP-'' ''BOARD''. Cut buffers are typically named ''CUT''_____''BUFFER0'' through ''CUT''_____''BUFFER7''.
542 ; __insert-seven-bit()__ : This action is a synonym for __insert()__
543 ; __interpret(__''control-sequence''__)__ : Interpret the given control sequence locally, i.e., without passing it to the host. This works by inserting the control sequence at the front of the input buffer. Use "\" to escape octal digits in the string. Xt does not allow you to put a null character (i.e., "\000") in the string.
544 ; __keymap(__''name''__)__ : This action dynamically defines a new translation table whose resource name is ''name'' with the suffix ''Keymap'' (case is significant). The name ''None'' restores the original translation table.
545 ; __larger-vt-font()__ : Set the font to the next larger one, based on the font dimensions. See also __set-vt-font()__.
546 ; __maximize()__ : Resizes the window to fill the screen.
547 ; __meta-sends-escape()__ : This action toggles the state of the __meta!SendsEscape__ resource.
548 ; __popup-menu(__''menuname''__)__ : This action displays the specified popup menu. Valid names (case is significant) include: ''mainMenu'', ''vtMenu'', ''fontMenu'', and ''tekMenu''.
549 ; __print()__ : This action prints the window and is also invoked by the ''print'' entry in ''mainMenu''.
550 ; __print-redir()__ : This action toggles the __printer!ControlMode__ between 0 and 2. The corresponding popup menu entry is useful for switching the printer off if you happen to change your mind after deciding to print random binary files on the terminal.
551 ; __quit()__ : This action sends a SIGHUP to the subprogram and exits. It is also invoked by the __quit__ entry in ''mainMenu''.
552 ; __redraw()__ : This action redraws the window and is also invoked by the ''redraw'' entry in ''mainMenu''.
553 ; __restore()__ : Restores the window to the size before it was last maximized.
554 ; __scroll-back(__''count'' __[[,__''units'' __[[,__''mouse''__] ])__ : This action scrolls the text window backward so that text that had previously scrolled off the top of the screen is now visible. The ''count'' argument indicates the number of ''units'' (which may be ''page'', ''halfpage'', ''pixel'', or ''line'') by which to scroll. If the third parameter ''mouse'' is given, the action is ignored when mouse reporting is enabled.
555 ; __scroll-forw(__''count'' __[[,__''units'' __[[,__''mouse''__] ])__ : This action scrolls is similar to __scroll-back__ except that it scrolls the other direction.
556 ; __secure()__ : This action toggles the ''Secure Keyboard'' mode described in the section named __SECURITY__, and is invoked from the __securekbd__ entry in ''mainMenu''.
557 ; __select-cursor-end(__''destname'' __[[, ...])__ : This action is similar to __select-end__ except that it should be used with __select-cursor-start__.
558 ; __select-cursor-start()__ : This action is similar to __select-start__ except that it begins the selection at the current text cursor position.
559 ; __select-end(__''destname'' __[[, ...])__ : This action puts the currently selected text into all of the selections or cutbuffers specified by ''destname''.
560 ; __select-extend()__ : This action tracks the pointer and extends the selection. It should only be bound to Motion events.
561 ; __select-set()__ : This action stores text that corresponds to the current selection, without affecting the selection mode.
562 ; __select-start()__ : This action begins text selection at the current pointer location. See the section on __POINTER__ __USAGE__ for information on making selections.
563 ; __send-signal(__''signame''__)__ : This action sends the signal named by ''signame'' to the ''xterm'' subprocess (the shell or program specified with the ''-e'' command line option) and is also invoked by the __suspend__, __continue__, __interrupt__, __hangup__, __terminate__, and __kill__ entries in ''mainMenu''. Allowable signal names are (case is not significant): ''tstp'' (if supported by the operating system), ''suspend'' (same as ''tstp''), ''cont'' (if supported by the operating system), ''int'', ''hup'', ''term'', ''quit'', ''alrm'', ''alarm'' (same as ''alrm'') and ''kill''.
564 ; __set-allow132(__''on/off/toggle''__)__ : This action toggles the __c132__ resource and is also invoked from the __allow132__ entry in ''vtMenu''.
565 ; __set-altscreen(__''on/off/toggle''__)__ : This action toggles between the alternate and current screens.
566 ; __set-appcursor(__''on/off/toggle''__)__ : This action toggles the handling Application Cursor Key mode and is also invoked by the __appcursor__ entry in ''vtMenu''.
567 ; __set-appkeypad(__''on/off/toggle''__)__ : This action toggles the handling of Application Keypad mode and is also invoked by the __appkeypad__ entry in ''vtMenu''.
568 ; __set-autolinefeed(__''on/off/toggle''__)__ : This action toggles automatic insertion of linefeeds and is also invoked by the __autolinefeed__ entry in ''vtMenu''.
569 ; __set-autowrap(__''on/off/toggle''__)__ : This action toggles automatic wrapping of long lines and is also invoked by the __autowrap__ entry in ''vtMenu''.
570 ; __set-backarrow(__''on/off/toggle''__)__ : This action toggles the __backarrowKey__ resource and is also invoked from the __backarrow key__ entry in ''vtMenu''.
571 ; __set-cursorblink(__''on/off/toggle''__)__ : This action toggles the __cursorBlink__ resource and is also invoked from the __cursorblink__ entry in ''vtMenu''.
572 ; __set-cursesemul(__''on/off/toggle''__)__ : This action toggles the __curses__ resource and is also invoked from the __cursesemul__ entry in ''vtMenu''.
573 ; __set-font-doublesize(__''on/off/toggle''__)__ : This action toggles the __fontDoublesize__ resource and is also invoked by the __font-doublesize__ entry in ''fontMenu''.
574 ; __set-hp-function-keys(__''on/off/toggle''__)__ : This action toggles the __hp!FunctionKeys__ resource and is also invoked by the __hp!FunctionKeys__ entry in ''mainMenu''.
575 ; __set-jumpscroll(__''on/off/toggle''__)__ : This action toggles the __jumpscroll__ resource and is also invoked by the __jumpscroll__ entry in ''vtMenu''.
576 ; __set-font-linedrawing(__''on/off/toggle''__)__ : This action toggles the ''xterm'''s state regarding whether the current font has line-drawing characters and whether it should draw them directly. It is also invoked by the __font-linedrawing__ entry in ''fontMenu''.
577 ; __set-logging()__ : This action toggles the state of the logging option.
578 ; __set-old-function-keys(__''on/off/toggle''__)__ : This action toggles the state of legacy function keys and is also invoked by the __old!FunctionKeys__ entry in ''mainMenu''.
579 ; __set-marginbell(__''on/off/toggle''__)__ : This action toggles the __marginBell__ resource and is also invoked from the __marginbell__ entry in ''vtMenu''.
580 ; __set-num-lock()__ : This action toggles the state of the __numLock__ resource.
581 ; __set-pop-on-bell(__''on/off/toggle''__)__ : This action toggles the __pop!OnBell__ resource and is also invoked by the __poponbell__ entry in ''vtMenu''.
582 ; __set-reverse-video(__''on/off/toggle''__)__ : This action toggles the ''reverseVideo'' resource and is also invoked by the __reversevideo__ entry in ''vtMenu''.
583 ; __set-reversewrap(__''on/off/toggle''__)__ : This action toggles the __reverseWrap__ resource and is also invoked by the __reversewrap__ entry in ''vtMenu''.
584 ; __set-scroll-on-key(__''on/off/toggle''__)__ : This action toggles the __scrollKey__ resource and is also invoked from the __scrollkey__ entry in ''vtMenu''.
585 ; __set-scroll-on-tty-output(__''on/off/toggle''__)__ : This action toggles the __scroll!TtyOutput__ resource and is also invoked from the __scrollttyoutput__ entry in ''vtMenu''.
586 ; __set-scrollbar(__''on/off/toggle''__)__ : This action toggles the __scrollbar__ resource and is also invoked by the __scrollbar__ entry in ''vtMenu''.
587 ; __set-sco-function-keys(__''on/off/toggle''__)__ : This action toggles the __sco!FunctionKeys__ resource and is also invoked by the __sco!FunctionKeys__ entry in ''mainMenu''.
588 ; __set-sun-function-keys(__''on/off/toggle''__)__ : This action toggles the __sun!FunctionKeys__ resource and is also invoked by the __sun!FunctionKeys__ entry in ''mainMenu''.
589 ; __set-sun-keyboard(__''on/off/toggle''__)__ : This action toggles the __sunKeyboard__ resource and is also invoked by the __sunKeyboard__ entry in ''mainMenu''.
590 ; __set-tek-text(__''large/2/3/small''__)__ : This action sets font used in the Tektronix window to the value of the resources __tektextlarge__, __tektext2__, __tektext3__, and __tektextsmall__ according to the argument. It is also by the entries of the same names as the resources in ''tekMenu''.
591 ; __set-terminal-type(__''type''__)__ : This action directs output to either the ''vt'' or ''tek'' windows, according to the ''type'' string. It is also invoked by the __tekmode__ entry in ''vtMenu'' and the __vtmode__ entry in ''tekMenu''.
592 ; __set-titeInhibit(__''on/off/toggle''__)__ : This action toggles the __titeInhibit__ resource, which controls switching between the alternate and current screens.
593 ; __set-visibility(__''vt/tek''__,__''on/off/toggle''__)__ : This action controls whether or not the ''vt'' or ''tek'' windows are visible. It is also invoked from the __tekshow__ and __vthide__ entries in ''vtMenu'' and the __vtshow__ and __tekhide__ entries in ''tekMenu''.
594 ; __set-visual-bell(__''on/off/toggle''__)__ : This action toggles the __visualBell__ resource and is also invoked by the __visualbell__ entry in ''vtMenu''.
595 ; __set-vt-font(__''d/1/2/3/4/5/6/e/s'' __[[,__''normalfont'' __[[,__ : ''boldfont''__]])__ This action sets the font or fonts currently being used in the VT102 window. The first argument is a single character that specifies the font to be used: ''d'' or ''D'' indicate the default font (the font initially used when ''xterm'' was started), ''1'' through ''6'' indicate the fonts specified by the ''font1'' through ''font6'' resources, ''e'' or ''E'' indicate the normal, bold and wide fonts that have been set through escape codes (or specified as the second, third and fourth action arguments, respectively), and ''s'' or ''S'' indicate the font selection (as made by programs such as ''xfontsel(1)'') indicated by the second action argument.
596 ; __smaller-vt-font()__ : Set the font to the next smaller one, based on the font dimensions. See also __set-vt-font()__.
597 ; __soft-reset()__ : This action resets the scrolling region and is also invoked from the __softreset__ entry in ''vtMenu''. The effect is identical to a soft reset (DECSTR) control sequence.
598 ; __start-extend()__ : This action is similar to __select-start__ except that the selection is extended to the current pointer location.
599 ; __start-cursor-extend()__ : This action is similar to __select-extend__ except that the selection is extended to the current text cursor position.
600 ; __string(__''string''__)__ : This action inserts the specified text string as if it had been typed. Quotation is necessary if the string contains whitespace or non-alphanumeric characters. If the string argument begins with the characters "0x", it is interpreted as a hex character constant.
601 ; __tek-copy()__ : This action copies the escape codes used to generate the current window contents to a file in the current directory beginning with the name COPY. It is also invoked from the ''tekcopy'' entry in ''tekMenu''.
602 ; __tek-page()__ : This action clears the Tektronix window and is also invoked by the __tekpage__ entry in ''tekMenu''.
603 ; __tek-reset()__ : This action resets the Tektronix window and is also invoked by the ''tekreset'' entry in ''tekMenu''.
604 ; __vi-button()__ : Handles a button event (other than press and release) by echoing a control sequence computed from the event's line number in the screen relative to the current line: __ESC ^P__ or __ESC ^N__ according to whether the event is before, or after the current line, respectively. The ^N (or ^P) is repeated once for each line that the event differs from the current line. The control sequence is omitted altogether if the button event is on the current line.
605 ; __visual-bell()__ : This action flashes the window quickly.
606
607 The Tektronix window also has the following action:
608
609 ; __gin-press(__''l/L/m/M/r/R''__)__ : This action sends the indicated graphics input code.
610
611 The default bindings in the VT102 window are:
612
613 Shift <!KeyPress> Prior:scroll-back(1,halfpage) \n\
614 Shift <!KeyPress> Next:scroll-forw(1,halfpage) \n\
615 Shift <!KeyPress> Select:select-cursor-start() \
616 select-cursor-end(PRIMARY, CUT_BUFFER0) \n\
617 Shift <!KeyPress> Insert:insert-selection(PRIMARY, CUT_BUFFER0) \n\
618 Shift~Ctrl <!KeyPress> KP_Add:larger-vt-font() \n\
619 Shift Ctrl <!KeyPress> KP_Add:smaller-vt-font() \n\
620 Shift <!KeyPress> KP_Subtract:smaller-vt-font() \n\
621 ~Meta <!KeyPress>:insert-seven-bit() \n\
622 Meta <!KeyPress>:insert-eight-bit() \n\
623 !Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
624 !Lock Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
625 !Lock Ctrl @Num_Lock <Btn1Down>:popup-menu(mainMenu) \n\
626 ! @Num_Lock Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
627 ~Meta <Btn1Down>:select-start() \n\
628 ~Meta <Btn1Motion>:select-extend() \n\
629 !Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
630 !Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
631 !Lock Ctrl @Num_Lock <Btn2Down>:popup-menu(vtMenu) \n\
632 ! @Num_Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
633 ~Ctrl ~Meta <Btn2Down>:ignore() \n\
634 Meta <Btn2Down>:clear-saved-lines() \n\
635 ~Ctrl ~Meta <Btn2Up>:insert-selection(PRIMARY, CUT_BUFFER0) \n\
636 !Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
637 !Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
638 !Lock Ctrl @Num_Lock <Btn3Down>:popup-menu(fontMenu) \n\
639 ! @Num_Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
640 ~Ctrl ~Meta <Btn3Down>:start-extend() \n\
641 ~Meta <Btn3Motion>:select-extend() \n\
642 Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
643 Lock Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
644 Lock @Num_Lock Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
645 @Num_Lock Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
646 <Btn4Down>:scroll-back(5,line,m) \n\
647 Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
648 Lock Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
649 Lock @Num_Lock Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
650 @Num_Lock Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
651 <Btn5Down>:scroll-forw(5,line,m) \n\
652 <!BtnUp>:select-end(PRIMARY, CUT_BUFFER0) \n\
653 <!BtnDown>:bell(0)
654
655 The default bindings in the Tektronix window are:
656
657 ~Meta<!KeyPress>: insert-seven-bit() \n\
658 Meta<!KeyPress>: insert-eight-bit() \n\
659 !Ctrl <Btn1Down>: popup-menu(mainMenu) \n\
660 !Lock Ctrl <Btn1Down>: popup-menu(mainMenu) \n\
661 !Lock Ctrl @Num_Lock <Btn1Down]:popup-menu(mainMenu) \n\
662 !Ctrl @Num_Lock <Btn1Down>:popup-menu(mainMenu) \n\
663 !Ctrl <Btn2Down>: popup-menu(tekMenu) \n\
664 !Lock Ctrl <Btn2Down>: popup-menu(tekMenu) \n\
665 !Lock Ctrl @Num_Lock <Btn2Down]:popup-menu(tekMenu) \n\
666 !Ctrl @Num_Lock <Btn2Down>:popup-menu(tekMenu) \n\
667 Shift ~Meta<Btn1Down>:gin-press(L) \n\
668 ~Meta<Btn1Down>:gin-press(l) \n\
669 Shift ~Meta<Btn2Down>:gin-press(M) \n\
670 ~Meta<Btn2Down>:gin-press(m) \n\
671 Shift ~Meta<Btn3Down>:gin-press(R) \n\
672 ~Meta<Btn3Down>:gin-press(r)
673
674 Below is a sample how of the __keymap()__ action is used to add special keys for entering commonly-typed works:
675
676 *VT100.Translations: #override <Key>F13: keymap(dbx)
677 *VT100.dbxKeymap.translations: \
678 <Key>F14: keymap(None) \n\
679 <Key>F17: string("next") string(0x0d) \n\
680 <Key>F18: string("step") string(0x0d) \n\
681 <Key>F19: string("continue") string(0x0d) \n\
682 <Key>F20: string("print ") insert-selection(PRIMARY, CUT_BUFFER0)
683
684 !!! CONTROL SEQUENCES AND KEYBOARD
685
686 The ''Xterm Control Sequences'' document lists the control sequences which an application can send ''xterm'' to make it perform various operations. Most of these operations are standardized, from either the DEC or Tektronix terminals, or from more widely used standards such as ISO 6429.
687
688 !!! ENVIRONMENT
689
690 ''Xterm'' sets the environment variables "TERM" for the window you have created. It also uses and sets the environment variable "DISPLAY" to specify which bit map display terminal to use. The environment variable "WINDOWID'' is set to the X window id number of the ''xterm" window.
691
692 Depending on your system configuration, ''xterm'' may also set the following:
693
694 ; COLUMNS : the width of the ''xterm'' in characters (cf: "stty columns").
695 ; HOME : when ''xterm'' is configured to update utmp.
696 ; LINES : the height of the ''xterm'' in characters (cf: "stty rows").
697 ; LOGNAME : when ''xterm'' is configured to update utmp.
698 ; SHELL : when ''xterm'' is configured to update utmp.
699 ; TERMCAP : the contents of the termcap entry corresponding to $TERM, with lines and columns values substituted for the actual size window you have created.
700 ; TERMINFO : may be defined to a nonstandard location in the configure script.
701
702 !!! FILES
703
704 The actual pathnames given may differ on your system.
705
706 ; ''__/etc/utmp__'' : the system logfile, which records user logins.
707 ; ''__/etc/wtmp__'' : the system logfile, which records user logins and logouts.
708 ; ''__/usr/X11R6/lib/X11/app-defaults/XTerm__'' : the ''xterm'' default application resources.
709 ; ''__/usr/X11R6/lib/X11/app-defaults/XTerm-color__'' : the ''xterm'' color application resources. If your display supports color, use this *customization: -color in your .Xdefaults file to automatically turn on color in ''xterm'' and similar applications.
710
711 !!! ERROR MESSAGES
712
713 Most of the fatal error messages from ''xterm'' use the following format: xterm: Error ''XXX'', errno ''YYY'': ''ZZZ'' The ''XXX'' codes (which are used by ''xterm'' as its exit-code) are listed below, with a brief explanation.
714
715 ; 1 : is used for miscellaneous errors, usually accompanied by a specific message,
716 ; 11 ERROR_FIONBIO : main: ioctl() failed on FIONBIO
717 ; 12 ERROR_F_GETFL : main: ioctl() failed on F_GETFL
718 ; 13 ERROR_F_SETFL : main: ioctl() failed on F_SETFL
719 ; 14 ERROR_OPDEVTTY : spawn: open() failed on __/dev/tty__
720 ; 15 ERROR_TIOCGETP : spawn: ioctl() failed on TIOCGETP
721 ; 17 ERROR_PTSNAME : spawn: ptsname() failed
722 ; 18 ERROR_OPPTSNAME : spawn: open() failed on ptsname
723 ; 19 ERROR_PTEM : spawn: ioctl() failed on I_PUSH/"ptem"
724 ; 20 ERROR_CONSEM : spawn: ioctl() failed on I_PUSH/"consem"
725 ; 21 ERROR_LDTERM : spawn: ioctl() failed on I_PUSH/"ldterm"
726 ; 22 ERROR_TTCOMPAT : spawn: ioctl() failed on I_PUSH/"ttcompat"
727 ; 23 ERROR_TIOCSETP : spawn: ioctl() failed on TIOCSETP
728 ; 24 ERROR_TIOCSETC : spawn: ioctl() failed on TIOCSETC
729 ; 25 ERROR_TIOCSETD : spawn: ioctl() failed on TIOCSETD
730 ; 26 ERROR_TIOCSLTC : spawn: ioctl() failed on TIOCSLTC
731 ; 27 ERROR_TIOCLSET : spawn: ioctl() failed on TIOCLSET
732 ; 28 ERROR_INIGROUPS : spawn: initgroups() failed
733 ; 29 ERROR_FORK : spawn: fork() failed
734 ; 30 ERROR_EXEC : spawn: exec() failed
735 ; 32 ERROR_PTYS : get_pty: not enough ptys
736 ; 34 ERROR_PTY_EXEC : waiting for initial map
737 ; 35 ERROR_SETUID : spawn: setuid() failed
738 ; 36 ERROR_INIT : spawn: can't initialize window
739 ; 46 ERROR_TIOCKSET : spawn: ioctl() failed on TIOCKSET
740 ; 47 ERROR_TIOCKSETC : spawn: ioctl() failed on TIOCKSETC
741 ; 48 ERROR_SPREALLOC : spawn: realloc of ttydev failed
742 ; 49 ERROR_LUMALLOC : luit: command-line malloc failed
743 ; 50 ERROR_SELECT : in_put: select() failed
744 ; 54 ERROR_VINIT : VTInit: can't initialize window
745 ; 57 ERROR_KMMALLOC1 : !HandleKeymapChange: malloc failed
746 ; 60 ERROR_TSELECT : Tinput: select() failed
747 ; 64 ERROR_TINIT : !TekInit: can't initialize window
748 ; 71 ERROR_BMALLOC2 : !SaltTextAway: malloc() failed
749 ; 80 ERROR_LOGEXEC : !StartLog: exec() failed
750 ; 83 ERROR_XERROR : xerror: XError event
751 ; 84 ERROR_XIOERROR : xioerror: X I/O error
752 ; 90 ERROR_SCALLOC : Alloc: calloc() failed on base
753 ; 91 ERROR_SCALLOC2 : Alloc: calloc() failed on rows
754 ; 92 ERROR_SREALLOC : !ScreenResize: realloc() failed on alt base
755 ; 96 ERROR_RESIZE : !ScreenResize: malloc() or realloc() failed
756 ; 102 ERROR_SAVE_PTR : !ScrnPointers: malloc/realloc() failed
757 ; 110 ERROR_SBRALLOC : !ScrollBarOn: realloc() failed on base
758 ; 111 ERROR_SBRALLOC2 : !ScrollBarOn: realloc() failed on rows
759 ; 121 ERROR_MMALLOC : my_memmove: malloc/realloc failed
760
761 !!! BUGS
762
763 Large pastes do not work on some systems. This is not a bug in ''xterm''; it is a bug in the pseudo terminal driver of those systems. ''xterm'' feeds large pastes to the pty only as fast as the pty will accept data, but some pty drivers do not return enough information to know if the write has succeeded.
764
765 Many of the options are not resettable after ''xterm'' starts.
766
767 This program still needs to be rewritten. It should be split into very modular sections, with the various emulators being completely separate widgets that do not know about each other. Ideally, you'd like to be able to pick and choose emulator widgets and stick them into a single control widget.
768
769 There needs to be a dialog box to allow entry of the Tek COPY file name.
770
771 !!! SEE ALSO
772
773 resize(1), luit(1), X(7), pty(4), tty(4) ''Xterm Control Sequences'' (this is the file ctlseqs.ms).
774
775 http://invisible-island.net/xterm/xterm.html
776
777 !!! AUTHORS
778
779 Far too many people, including:
780
781 * Loretta Guarino Reid (DEC-UEG-WSL)
782 * Joel !McCormack (DEC- UEG-WSL)
783 * Terry Weissman (DEC-UEG-WSL)
784 * Edward Moy (Berkeley)
785 * Ralph R. Swick (MIT-Athena)
786 * Mark Vandevoorde (MIT- Athena)
787 * Bob !McNamara (DEC-MAD)
788 * Jim Gettys (MIT-Athena)
789 * Bob Scheifler (MIT X Consortium)
790 * Doug Mink (SAO)
791 * Steve Pitschke (Stellar)
792 * Ron Newman (MIT-Athena)
793 * Jim Fulton (MIT X Consortium)
794 * Dave Serisky (HP)
795 * Jonathan Kamens (MIT-Athena)
796 * Jason Bacon
797 * Stephen P. Wall
798 * David Wexelblat
799 * and Thomas Dickey (XFree86 Project).
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.