|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T x
Length: 27590 (0x6bc6) Types: TextFile Names: »xterm.1«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z« └─⟦2109abc41⟧ └─⟦this⟧ »./X.V10R4/man/xterm.1«
.TH XTERM 1 "1 Nov 1986" "X Version 10" .SH NAME xterm \- X window system terminal emulator .SH SYNOPSIS .B xterm [ option ] ... .SH DESCRIPTION .I Xterm is the .I X window system terminal emulator. It attempts to emulate a DEC VT102 terminal to provide a standard terminal type for programs not aware of the window system directly. Under 4.3BSD, Ultrix 1.2 and other systems with the capability, .I xterm supports the terminal resizing facilities built into the system. .PP In addition, .I xterm emulates the Tektronix 4015 in a separate window. To maintain the correct aspect ratio (height/width), Tektronix graphics will be restricted to the largest box with a 4015's aspect ratio that will fit in the window. This box is located in the upper left area of the window. .PP Both windows may be displayed at the same time, though only one window and mode is active at a time. Input will be displayed in the active window even if the mouse is in the other window. Switching between the active modes is possible under manual (menu) and program (escape sequence) control. .PP .I Xterm understands the following options. If the option begins with a .RB ` + ' instead of a .RB ` \- ', the option is restored to its default value. These options override those set in the ``.Xdefaults'' file (see the .B "X DEFAULTS" section). .TP 12 .B \-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 .I xterm window will resize appropriately. .TP .B \-C When .I xterm is run on a Sun, this option causes messages normally destined for the console device, to be displayed in the .I xterm window. .TP .B \-L indicates that .I xterm is being called by .IR init (8), and should presume that its file descriptors are already open on a slave pseudo-tty, and that .IR getty (8) should be run rather than the user's shell. This option should only be used by .IR init (8) .TP .B \-ar This option turns on the auto-raise mode of .IR xterm , which automatically raises the window when the mouse cursor enters the window. .TP .BI \-b " border" .I Xterm maintains an inner border (distance between characters and the window's border) of one pixel. The .B \-b option allows you to set the size of this border to .I border. .TP .BI \-bd " color" On color displays, determines the color of the (highlighted) border. .TP .BI \-bg " color" On color displays, determines the color of the background. .TP .B \-bi This option forces the icon to be a static bitmap rather than the default miniature window. .TP .BI \-bw " borderwidth" Allows you to specify the width of the window border in pixels. .TP .BI \-cr " color" On color displays, determines the (highlighted) color of the text cursor; default is the text (foreground) color. .TP .B \-cu Several programs that use the .IR curses (3x) cursor motion package have some difficulties with VT102-compatible terminals. The bug fixed with this option occurs with .IR more (1) on a file containing a line that is exactly the width of the window and which is followed by line beginning with a tab. Normally, the leading tabs disappear, but this option causes them to be displayed correctly. .TP .B \-dw When the .I xterm icon is deiconified, this option warps the mouse to the center of the window. .TP .BI \-e " command arguments" The specified .I command will be executed in the window, rather than starting a shell. The command and the optional arguments must appear last on the .I xterm command line. .TP .BI \-fb " font" The specified .I font will be used instead of the default bold font (which is ``vtbold''). 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. .TP .BI \-fg " color" On color displays, determines the color of the text (foreground). .TP .BI \-fi " font" Specifies the default font to be used for the miniature icon windows. The usual value for the icon font is ``nil2''. .TP .BI \-fn " font" The specified .I font will be used instead of the default font (which is ``vtsingle''). Any fixed width font may be used. .TP .BI \-ft " font" The specified .I font will be used in the title bar instead of the default font (which is ``vtsingle''). .TP .B \-i This option causes .I xterm to startup displaying the icon rather than the normal window. .TP .BI \-ib " file" The .IR file , which is assumed to be in .IR bitmap (1) format, is read and the resulting bitmap is used in the icon when in VT102 mode. If only one bitmap file is specified, it is used for both modes. If both the bitmap file names are null, no bitmap is used. .TP .BI \-it " file" The .IR file , which is assumed to be in .IR bitmap (1) format, is read and the resulting bitmap is used in the icon when in Tektronix mode. If only one bitmap file is specified, it is used for both modes. If both the bitmap file names are null, no bitmap is used. .TP .B \-j .I Xterm will `jump scroll'; when .I xterm falls behind scrolling the screen, it will move multiple lines up at once. The VT100 escape sequences for smooth scroll can be used to enable/disable this feature from a program, or the `Mode Menu' can be used to set it interactively. .\"TP .\"B \-k .TP .B \-l Logging is turned on; all input from the pseudo tty is appended to the logfile. .TP .BI \-lf " file" This .I file specifies the file in which the log is written to, rather than the default ``\fBXtermLog.\fIXXXXX\fR'' where .I XXXXX is the process id of .I xterm (the file is created in the directory .I xterm is started in, or the home directory for a login .IR xterm ). If .I file begins with a ``|'' then the rest of the string is assumed to be a command to be executed by the shell, and a pipe is opened to the process. .TP .B \-ls This option causes the shell run under .I xterm to be a login shell (the user's .login file is read and the initial directory will be the home directory). .TP .B \-mb This option turns on the right margin bell. .TP .BI \-ms " color" On color displays, determines the color of the mouse cursor; default is the text cursor color. .TP .BI \-n " windowname" Allows you to set the name of the window for use by a window manager. This name is displayed in the title bar, also. .TP .BI \-nb " number" This .I number is used as the right margin distance in which the margin bell will ring (the default is 10). .TP .BI \-po " number" Normally, in page scroll mode, a ``page'' is defined to be the number of lines in the scrolling region minus the page overlap, which is one by default. .I Number specifies a new page overlap. .TP .B \-ps Page scroll mode is initially turned on. After a ``page'' of lines is displayed, .I xterm will stop displaying any more lines and the text cursor will disappear. Typing a carriage return will allow one more line to be scrolled (the return is discarded). Pressing the space bar (or any other printable character) allows another page to be scrolled (the character is discarded). Typing a control character allows another page to be scrolled, but the control character is sent (e.g., the interrupt character). .TP .B \-r The screen will be displayed with white characters on a black background, rather than the default black on white. This becomes the normal video mode, which is reversed by turning on the reverse video mode. .TP .B \-rv Same as .BR \-r . .TP .B \-rw This options turns on reverse-wraparound mode, that allows the cursor to wraparound from the leftmost column to the rightmost column of the previous line. This is very useful in the shell to allow erasure backwards across the previous line. .TP .B \-s When this option is specified, xterm no longer scrolls synchronously with the display. .I Xterm no longer attempts to keep the screen completely up to date while scrolling, but can then run faster when network latencies are very high. This is typically useful when using .I xterm across a very large internet or many hops. .TP .B \-sb This option causes the scrollbar to be displayed during startup, with the saving of lines scrolled off the top of the window being turned on. .TP .B \-si When using the scrollbar to review previous lines of text, the window is normally repositioned automatically at the bottom of the scroll region when input has arrived. This option disables repositioning on input. .TP .B \-sk When using the scrollbar to review pass lines of text, this option causes the window to be repositioned automatically in the normal postion at the bottom of the scroll region when a key is pressed. .TP .BI \-sl " number" The .I number specifies the maximum number of lines to save that are scrolled off the top of the window. The default is 64 lines. .TP .B \-sn By default, the status line is in revere-video (relative to the rest of the window). This option causes the status line to be in normal video (the status line is still enclosed in a box). .TP .B \-st This option causes the status line to be displayed on startup. .TP .B \-t This option causes the initial .I xterm window to be the Tektronix window, rather than the normal VT102 window. .TP .B \-tb This option disables the title bar from being displayed on startup. .TP .B \-ti Normally in the icon, the window name is to the right of the bitmap. This option causes the text to be under the icon. .TP .B \-vb This option turns on the visual bell mode, which flashes the window on receipt of a CTRL-G. .TP .B \-w Same as .BR \-bw . .TP .BI = geometry .I Xterm will take a normal X geometry specification for the VT102 window. This takes the form of ``\fB=\fIwidth\fBx\fIheight\fB+\fIxoff\fB+\fIyoff\fR''. See .IR X (1) for details of this specification. .TP .BI % geometry This geometry specification applies to the Tektronix window. .TP .BI # geometry This geometry specification applies to the icon position (the width and height information are optional and otherwise ignored). .TP .IB host : display Normally, .I xterm gets the host and display number to use from the environment variable ``DISPLAY''. One can, however specify them explicitly. The .I host specifies which machine to create the window on, and the .I display argument specifies the display number. For example, ``orpheus:1'' creates a shell window on display one on the machine orpheus. .SH "X DEFAULTS" .I Xterm allows you to preset defaults in a customization file in your home directory, called .BR .Xdefaults . The format of the file is ``programname.keyword:string''. See .IR X (1) for more details. .I Xterm obeys the convention for `MakeWindow' defaults. Keywords recognized by .I xterm are listed below. .TP 15 .B ActiveIcon If ``off'', .I xterm window icons(s) are static bitmaps rather than miniature windows. .TP .B AllowIconInput If ``on'', then keyboard input is permitted when .I xterm windows are in their iconified state and the icon is a miniature window. Keyboard input is always disabled when static bitmap icons are used. .TP .B AutoRaise If ``on'', .I xterm window(s) are automatically raised when the mouse enters them. .TP .B Background Set the background color. .TP .B BodyFont Set the default font. .TP .B BoldFont Specify a default bold font. .TP .B Border Set the border color. .TP .B BorderWidth Set the border width of the window. .TP .B C132 If ``on'', allow the DECCOLM escape sequence to switch between 80 and 132 column mode. .TP .B Curses If ``on'', enable the .IR curses (3x) fix. .TP .B Cursor Set the text cursor color. .TP .B DeiconifyWarp If ``on'', warp the mouse to the center of the window after deiconification. .TP .B Foreground Set the text color. .TP .B IconBitmap Specifies the .IR bitmap (1) file to be used as the bitmap for VT102 mode icon. .TP .B IconFont Specify the default font for miniature window icons. The usual value is ``nil2''. .TP .B IconStartup If ``on'', initially display the icon rather than the normal window. .TP .B InternalBorder Set the space between the text and window border. This is called padding above. .TP .B JumpScroll If ``on'', jump scroll is enabled. .\"TP .\"B KeyBoard .TP .B LogFile Specifies the log file or command to pipe to when logging is activated. .TP .B Logging If ``on'', turn logging on initially. .TP .B LogInhibit If ``on'', totally inhibit logging from being turned on. .TP .B LoginShell If ``on'', make the shell executed a login shell. .TP .B MarginBell If ``on'', turn on the margin bell. .TP .B MenuBorder specifies the border width for the menus. The default is 2. .TP .B MenuPad specifies the extra padding above and below the menu title. The default is 3. .TP .B MenuFont specifies the font to be used within the menus. The default is the same font used for the titlebar. .TP .B Mouse Set the mouse cursor color. .TP .B NMarginBell Set the margin bell right margin distance. .TP .B PageOverlap Set the page overlap in page scroll mode. .TP .B PageScroll If ``on'', turn on page scroll mode. .TP .B ReverseVideo If ``on'', reverse the definition of foreground and background color. .TP .B ReverseWrap If ``on'', turn on the reverse wraparound mode. .TP .B SaveLines Set the number of lines to save when scrolled of the top of the window. .TP .B ScrollBar If ``on'', show the scrollbar initially. .TP .B ScrollInput If ``off'', disable repositioning the scroll region at the bottom if new input has arrived. .TP .B ScrollKey If ``on'', reposition the scroll region at the bottom if a key is pressed. .TP .B SignalInhibit If ``on'', totally inhibit the sending of signals from the .B xterm menu. .TP .B StatusLine If ``on'', show the status line on startup. .TP .B StatusNormal If ``on'', make the status line normal video. .TP .B TekIconBitmap Specifies the .IR bitmap (1) file to be used as the bitmap for Tektronix mode icon. .TP .B TekInhibit If ``on'', totally inhibit going into Tektronix mode. .TP .B TextUnderIcon If ``on'', place the icon text under the bitmap icon. .TP .B TitleBar If ``off'', don't show the title bar on startup. .TP .B TitleFont Set the font of the title bar text. .TP .B VisualBell If ``on'', turn on visual bell mode at startup. .SH EMULATIONS The VT102 emulation is fairly complete, but does not support the blinking character attribute nor the double-wide and double-size character sets. .IR Termcap (5) entries that work with .I xterm include ``xterms'', ``xterm'', ``vt102'', ``vt100'' and ``ansi'', and .I xterm automatically searches the termcap file in this order for these entries and then sets the ``TERM'' and the ``TERMCAP'' environment variables. .PP Many of the special .I xterm features (like the scrollbar and logging) may be modified under program control through a set of escape sequences different from the standard VT102 escape sequences. Also, many of the Sun tty escape sequences for resizing and moving the window are also understood. (See the .I ``Xterm Control Sequences'' document.) .PP The Tektronix 4015 emulation is also fairly good. Four different font sizes and five different lines types are supported. The Tektronix text and graphics commands are recorded internally by .I xterm and may be written to a file by sending the COPY escape sequence (or through the .B Tektronix menu; see below). The name of the file will be ``\fBCOPY\fIyy\fB\-\fIMM\fB\-\fIdd\fB.\fIhh\fB:\fImm\fB:\fIss\fR'', where .IR yy , .IR MM , .IR dd , .IR hh , .I mm and .I ss are the year, month, day, hour, minute and second when the COPY was performed (the file is created in the directory .I xterm is started in, or the home directory for a login .IR xterm ). .SH "MOUSE USAGE" .PP When using the mouse to create the VT102 window, a cursor and a rubber banding box will outline where the window will be created on the display. If the left button is pressed, a HEIGHTxWIDTH (default 24x80) size window will be created at the position where the button is released. If the right button is pressed, a window the height of the display and WIDTH (default 80) characters wide will be created. If the center button is pressed and held down, the upper left hand corner of the window is defined at this position. An outline of the minimum size window is shown, and a popup window in the upper left hand corner of the display will show the size in characters of the window. Moving the mouse (while still holding the button down) will enlarge the window and the sizes in the pop up window will update accordingly. Releasing the button will define the lower right hand corner of the window. .PP Once the VT102 window is created, .I xterm allows you to save text and restore it within the same or other windows. The button functions are enabled when holding down the ``shift'' key. The left hand button takes the text from the cursor (at button release) through the end of line (including the new line), saves it in the global cut buffer, and immediately `retypes' the line, inserting it as keyboard input. This provides a history mechanism. The selected text is highlighted while the button is pressed. Moving off the initial line will cancel the selection. If there is no text beyond the initial cursor point, .I xterm will sound the bell, indicating an error. .PP The shifted center button 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 when the button is released. .PP The shifted right hand button `types' (pastes) the text from the cut buffer, inserting it as keyboard input. 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. .PP The scrollbar is composed of three parts, the scroll button at the top, the recorder button in the middle and the scroll region at the bottom. Pressing the middle button in any part of the scrollbar will display the scrollbar menu; see the .B MENUS section below. .PP 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. Clicking the mouse with the left of right button in the scroll region will position the top of the display window at the mouse position. .PP The recorder button shows the state of saving lines scrolled off the top of the window. Tape running reel to reel indicates on, while the tape hanging indicates off. Clicking the left or right button in the recorder button toggles the state of recording. .PP The scroll button causes the window to scroll up and down within the saved text. The left button moves the window position up (the text scrolls downward), while the right button moves the window position down (the text scrolls upward). The amount of scrolling is modified by the ``shift'' and ``control'' keys. Without either, the window scrolls a single line at a time. Continuing to hold the button down will causes the text to continuously scroll a line at a time. .PP The ``shift'' key causes the text to scroll a window full at a time (actually it is one line less than a full window). And the ``control'' key causes the text to be positioned at the extremes, top or bottom. .PP When using the mouse to create the Tektronix window, a cursor and a rubber banding box will outline where the window will be created on the display. If the left button is pressed, a default size window (750 pixels wide by 565 pixel high) is created at the origin. If the right button is pressed, a default size window is created at the mouse position. If the center button is pressed and held down, the upper left hand corner of the window is defined at this position. An outline of the minimum size window is shown, and a popup window in the upper left hand corner of the display will appear, indicating Tektronix mode. Moving the mouse (while still holding the button down) will enlarge the window. Releasing the button will define the lower right hand corner of the window. .PP Unlike the VT102 window, the Tektronix window dows 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 the left, middle or right button will return the letters `l', `m', and `r', respectively. If the `shift' key is pressed when a mouse buton is pressed, the corresponding upper case letter is sent. To distinquish a mouse 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 .IR tty (4) for details). .SH MENUS .I Xterm has five different menus, named .BR xterm , .BR Modes , .BR Tektronix , .B Scrollbar and .BR Windows . 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. .PP The .B xterm menu pops up when the ``control'' key and the left button is pressed in a window. The menu title gives the version number of .IR xterm . The modes section contains items that apply to both the VT102 and Tektronix windows. Notable entries in the command section of the menu are the .BR Continue , .BR Suspend , .BR Interrupt , .BR Hangup , .B Terminate and .B Kill which sends the SIGCONT, SIGTSTP, SIGINT, SIGHUP, SIGTERM and SIGKILL signals, respectively, to the process group of the process running under .I xterm (usually the shell). The .B Continue function is especially useful if the user has accidentally typed CTRL-Z, suspending the process. .PP The .B Modes menu sets various modes in the VT102 emulation, and is popped up with the ``control'' and middle button combination 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 there initial states just after .I xterm has finish processing the command line options. The .B Tektronix menu sets various modes in the Tektronix emulation, and is popped up with the ``control'' and middle button combination in the Tektronix window. The current font size is checked in the modes section of the menu. The .B PAGE entry in the command section clears the Tektronix window. .PP The .B Scrollbar menu is popped up when the middle button is pressed within the scrollbar. This menu allows several modes particular to the scrollbar to be set. .PP The .B Windows menu is not normally compiled into .I xterm as it duplicates functions that properly belong to window managers. It may, however, be enabled at the discretion of your system builder. .PP If enabled, the .B Windows menu is a special menu that is popped up when the ``control'' key and right button are pressed. Listed in order of bottommost to topmost are the visible windows on the display that are named. The checked entry is the current window. By selecting an entry, the corresponding window is raised to the top. This is very useful when a particular window of interest is obscured by many other windows. .SH "OTHER FEATURES" .I Xterm automatically highlights the window border, text cursor and titlebar when the mouse enters the window (selected) and unhighlights them when the mouse leaves the window (unselected). If the window is the focus window, then the window is highlighted no matter where the mouse is. .PP The titlebar displays the name of the window in the center and on both sides stripes appear when the window is selected (highlighted). If both windows are showing, only the active window's titlebar is highlighted. If the left, middle or right button is pressed in the stripped section of the titlebar, the corresponding menu is popped up, without the need to hold down the ``control'' key. Pressing the mouse button in the center title of the titlebar causes the window to automatically iconify. Pressing a button in the icon deiconifies it. In addition, if input comes in while .I xterm is iconified and the icon is a static bitmap, a box is drawn around the icon title. .PP 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 replace with the alternate screen. Saving of lines scrolled off the top of the window and page scroll mode are disabled, until the normal screen is restored. The .IR termcap (5) entry for .I xterm allows the visual editor .IR vi (1) to switch to the alternate screen for editing, and restore the screen on exit. .PP In either VT102 or Tektronix mode, there are escape sequences to change the title in the title bar (which will also change the name of the windows and icons) and to specify a new log file name. .PP By default, a miniature version of the VT102 or Tektronix window is displayed when .I xterm is iconified. The choice of which miniature to display is made when the full window(s) are iconified; if the Tek window is chosen in the iconify operation, then the icon will be a miniature Tek window and if the VT102 window is chosen, the icon will be a miniature VT102 window. This choice is independent of the current mode (Tektronix/VT102). .PP As an option, the miniature window may be disabled and a bitmap of a small VT102 window with titlebar and scrollbar can be displayed in the icon when in VT102 mode, and a bitmap of a Tektronix window with titlebar is displayed in Tektronix mode. these bitmaps may be user-defined (see options above). .SH ENVIRONMENT .I Xterm sets the environment variables ``TERM'' and ``TERMCAP'' properly for the size 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 .I xterm window. .SH "SEE ALSO" resize(1), X(1), pty(4), tty(4) .br .I ``Xterm Control Sequences'' .SH BUGS There is currently no way for a .I xterm window not to highlight itself when the mouse cursor enter it while another window is the keyboard focus. There needs to be a dialog box to allow entry of log file name and the COPY file name. Many of the options are not resettable after .I xterm starts. .SH AUTHORS Edward Moy (Berkeley), Ralph R. Swick (MIT-Athena), Mark Vandevoorde (MIT-Athena), Bob McNamara (DEC-MAD), Jim Gettys (MIT-Athena), Bob Scheifler (MIT-LCS), Doug Mink (SAO). .sp VMS and TOPS-20 are trademarks of Digital Equipment Corporation. .sp Copyright (c) 1984, 1985, 1986 by Massachusetts Institute of Technology. .br See .IR X (1) for a full copyright notice.