Initializes an Enhanced X-Windows terminal emulator.
aixterm [ -ah ] [ -ar ] [ -autopush ] [ -b NumberPixels ] [ -bd Color ] [ -bg Color ] [ -bw NumberPixels ] [ -cc CharRange:Value [ ,... ] ] [ -cr Color ] [ -csd CharShape ] [ -cu ] [ -C ] [ -display Name:Number ] [ -dw ] [ -f0 Font ] [ -f1 Font ] [ -f2 Font ] [ -f3 Font ] [ -f4 Font ] [ -f5 Font ] [ -f6 Font ] [ -f7 Font ] [ --f0 FontSet ] [ --f1 FontSet ] [ --f2 FontSet ] [ --f3 FontSet ] [ --f4 FontSet ] [ --f5 FontSet ] [ --f6 FontSet ] [ --f7 FontSet ] [ -fb Font ] [ -fg Color ] [ -fi FontSet ] [ -fn Font ] [ -fs Font ] [ -fullcursor ] [ -geometry Geometry ] [ #geometry Geometry ] [ -help ] [ -i ] [ -ib File ] [ -im InputMethod ] [ -j ] [ -keywords ] [ -lang Language ] [ -l ] [ -leftscroll ] [ -lf File ] [ -ls ] [ -mb ] [ -mc Number ] [ -ms Color ] [ -mn ] [ -n IconName ] [ -name Application ] [ -nb Number ] [ -nobidi ] [ -nonulls ] [ -nss NumShape ] [ -orient Orientation ] [ -outline Color ] [ -po Number ] [ -ps ] [ -pt Preedit ] [ -reduced ] [ -rfb Font ] [ -rfi Font ] [ -rfn Font ] [ -rfs Font ] [ -rf0 Font ] [ -rf1 Font ] [ -rf2 Font ] [ -rf3 Font ] [ -rf4 Font ] [ -rf5 Font ] [ -rf6Font ] [ -rf7 Font ] [ --rf0 FontSet ] [ --rf1 FontSet ] [ --rf2 FontSet ] [ --rf3 FontSet ] [ --rf4 FontSet ] [ --rf5 FontSet ] [ --rf6 FontSet ] [ --rf7 FontSet ] [ -rv ] [ -rw ] [ -s ] [ -sb ] [ -sf ] [ -si ] [ -sk ] [ -sl NumberLines ] [ -sn ] [ -st ] [ -suppress ] [ -symmetric ] [ -T Title ] [ -text TextType ] [ -ti ] [ -tm String ] [ -tn TerminalName ] [ -ut ] [ -v ] [ -vb ] [ -W ] [ -xrm String ] [ -132 ] [ -e Command ]
The aixterm command provides a standard terminal type for programs that do not interact directly with Enhanced X-Windows. This command provides an emulation for a VT102 terminal or a high function terminal (HFT). The VT102 mode is activated by the -v flag.
The aixterm command supports the display for up to 16 colors at a time.
The aixterm terminal supports escape sequences that perform terminal functions such as cursor control, moving and deleting lines, and aixterm private functions.
Many of the special aixterm terminal features (like the scroll bar) can be modified under program control through a set of private aixterm command escape sequences. You can also use escape sequences to change the title in the title bar.
There are three different areas in the aixterm window:
By default, only the terminal window is initially displayed.
The terminal window is the area provided for terminal emulation. When you create a window, a pseudo terminal is allocated and a command (usually a shell) is started.
The aixterm command automatically highlights the window border and the text cursor when the mouse cursor enters the window (selected) and unhighlights them when the mouse cursor leaves the window (unselected). If the window is the focus window, the window is highlighted regardless of the location of the mouse cursor. Any window manager, as in the case of the AIXwindows Window Manager (MWM), can cover the aixterm border, and the highlight and border color do not show.
The WINDOWID environment variable is set to the resource ID number of the aixterm window.
When running in an aixterm window, the TERM environment variable should be TERM=aixterm.
The TERM environment variable on your home machine determines what the TERM environment variable should be on the remote machine (unless it is overridden by your .profile).
When you use the rlogin, tn, or rsh commands to login to a different machine, the TERM environment variable should be set to aixterm. If this operation does not occur, you can perform the following two command line operations:
If commands (for example, the vi command) do not recognize the term type aixterm when you login to another system, perform the following one-time operation on the remote system:
The aixterm command supports bidirectional languages such as Arabic and Hebrew. This command can open a window to be used with Arabic/Hebrew applications. You can create an Arabic/Hebrew window by specifying an Arabic or Hebrew locale (ar_AA, Ar_AA, iw_IL, or Iw_IL) with the -lang flag or by predefining an Arabic or Hebrew locale from SMIT for the system. You can also use the Web-based System Manager wsm system fast path and selecting the Cultural Environment icon.
The Arabic/Hebrew window supports bidirectional text display. Thus, English and Arabic or Hebrew text can be displayed on the same line. There are different aspects in the Arabic/Hebrew window:
The screen orientation in an Arabic/Hebrew window can be either left-to-right or right-to-left. The default orientation is left-to-right unless otherwise specified with a flag or in the .Xdefaults file. While the window is active, you can reverse the screen orientation using special key combinations. You can reverse the screen orientation according to your needs.
An Arabic/Hebrew window supports two text modes and their corresponding manipulation:
In the implicit text mode, characters are stored in same order that they are entered. The text is transformed into its visual form only when it is displayed. In the visual text mode, characters are stored in the same way that they are displayed on the window.
The Arabic/Hebrew window represents Arabic and Hebrew texts differently, according to its context. Text is represented in one of the following forms:
Arabic/Hebrew can also be shaped according to the passthru mode. For more information on character shaping, see "Character Shaping" in AIX 5L Version 5.2 National Language Support Guide and Reference.
Numerics can be represented in Arabic numerals, Hindi numerals, or in passthru mode. In implicit text mode, numerals can also be represented according to their contextual form. Thus, Arabic numbers can be displayed in English text or Hindi numbers can be displayed in Arabic text.
The Arabic/Hebrew window can display an optional status line that shows the current status of the window. The status line contains the following values:
Note: Use the implicit text mode (the default text mode) for more efficient data sorting.
Use the following key combinations in an Arabic/Hebrew window to change certain settings.
Key Combination | Purpose |
---|---|
Alt + Enter | Reverses screen direction. |
Alt + Right Shift | Enables Arabic/Hebrew keyboard layer. |
Alt + Left Shift | Enables English keyboard layer. |
For Implicit Mode only:
Alt + Kpd* | Adjusts the column heading. |
For Visual Mode only:
For more information on the Autopush function, the Push/End Push function, or other Arabic/Hebrew functions, see the telnet,tn or tn3270 command.
The following is a list of the escape sequences supported by the aixterm command.
Some escape sequences activate and deactivate an alternate screen buffer that is the same size as the display area of the window. This capability allows the contents of the screen to be saved and restored. When the alternate screen is activated, the current screen is saved and replaced with the alternate screen. Saving lines scrolled off of the window is disabled until the original screen is restored.
The following table uses these abbreviations in the right hand column:
Name | Function | Data Stream | Support |
|
SINGLE-BYTE CONTROLS |
|
|
BEL | Bell | 0x07 | Xv, Xh, H, V |
BS | Backspace | 0x08 | Xv, Xh, H, V |
HT | Horizontal tab | 0x09 | Xv, Xh, H, V |
LF | Linefeed | 0x0A | Xv, Xh, H, V |
VT | Vertical tab | 0x0B | Xv, Xh, H, V |
FF | Form feed | 0x0C | Xv, Xh, H, V |
CR | Carriage return | 0x0D | Xv, Xh, H, V |
SO | Shift out | 0x0E | Xv, Xh, H, V |
SI | Shift in | 0x0F | Xv, Xh, H, V |
DC1 | Device control 1 | 0x11 | H, V |
DC3 | Device control 3 | 0x13 | H, V |
CAN | Cancel | 0x18 | H, V |
SUB | Substitute (also cancels) | 0x1A | H, V |
ESC | Escape | 0x1B | Xv, Xh, H, V |
SS4 | Single Shift 4 | 0x1C | H |
SS3 | Single Shift 3 | 0x1D | H |
SS2 | Single Shift 2 | 0x1E | H |
SS1 | Single Shift 1 | 0x1F | H |
cbt | cursor back tab | ESC [ Pn Z | Xv, Xh, H |
cha | cursor horizontal absolute | ESC [ Pn G | Xv, Xh, H |
cht | cursor horizontal tab | ESC [ Pn I | H |
ctc | cursor tab stop control | ESC [ Pn W | H |
cnl | cursor next line | ESC [ Pn E | H |
cpl | cursor preceding line | ESC [ Pn F | Xv, Xh, H |
cpr | cursor position report | ESC [ Pl; Pc R | Xv, Xh, H, V |
cub | cursor backward | ESC [ Pn D | Xv, Xh, H, V |
cud | cursor down | ESC [ Pn B | Xv, Xh, H, V |
cuf | cursor forward | ESC [ Pn C | Xv, Xh, H, V |
cup | cursor position | ESC [ Pl; Pc H | Xv, Xh, H, V |
cuu | cursor up | ESC [ Pn A | Xv, Xh, H, V |
cvt | cursor vertical tab | ESC [ Pn Y | H |
da1 | DEVICE ATTRIBUTES |
|
|
|
request (host to vt100) | ESC [ c | Xv, Xh, V |
|
request (host to vt100) | ESC [ 0 c | Xv, Xh, V |
|
response (vt100 to host) | ESC [ ? 1 ; 2 c | Xv, Xh, V |
dch | delete character | ESC [ Pn P | Xv, Xh, H |
decaln | screen alignment display | ESC # 8 | Xv, Xh, V |
deckpam | keypad application mode | ESC = | Xv, V |
deckpnm | keypad numeric mode | ESC > | Xv, V |
decrc | restore cursor & attributes | ESC 8 | Xv, Xh, V |
decsc | save cursor & attributes | ESC 7 | Xv, Xh, V |
decstbm | set top & bottom margins | ESC [ Pt; Pb r | Xv, Xh, V |
dl | delete line | ESC [ Pn M | Xv, Xh, H |
dsr | device status report | ESC [ Ps n |
|
|
0 response from vt100: ready |
|
Xv, Xh, V |
|
5 command from host: please report status |
|
Xv, Xh, V |
|
6 command from host: report active position |
|
Xv, Xh, H, V |
|
13 error report sent from virtual terminal to host |
|
H |
dmi | disable manual input | ESC ` (back quote) | H |
emi | enable manual input | ESC b | H |
ea | erase area | ESC [ Ps O |
|
|
0 erase to end of area |
|
Xv, Xh, H |
|
1 erase from area start |
|
Xv, Xh, H |
|
2 erase all of area |
|
Xv, Xh, H |
ed | erase display | ESC [ Ps J |
|
|
0 erase to end of display |
|
Xv, Xh, H, V |
|
1 erase from display star |
|
Xv, Xh, H, V |
|
2 erase all of display |
|
Xv, Xh, H, V |
ef | erase field-e,s,all | ESC [ Ps N |
|
|
0 erase to end of field |
|
Xv, Xh, H |
|
1 erase from field start |
|
Xv, Xh, H |
|
2 erase all of field |
|
Xv, Xh, H |
el | erase line | ESC [ Ps K |
|
|
0 erase to end of line |
|
Xv, Xh, H, V |
|
1 erase from start of line |
|
Xv, Xh, H, V |
|
2 erase all of line |
|
Xv, Xh, H, V |
ech | erase character | ESC [ Pn X | Xv, Xh, H |
hts | horizontal tab stop | ESC H | Xv, Xh, H, V |
hvp | horizontal and vertical position | ESC [ Pl; Pc f | Xv, Xh, H, V |
ich | insert character | ESC [ Pn @ | Xv, Xh, H |
il | insert line | ESC [ Pn L | Xv, Xh, H |
ind | index | ESC D | Xv, Xh, H, V |
ls2 | lock shift G2 | ESC n | Xv |
ls3 | lock shift G3 | ESC o | Xv |
nel | next line | ESC E | Xv, Xh, H, V |
ksi | keyboard status information | ESC [ Ps p | H |
pfk | PF key report | ESC [ Pn q | Xh, H |
rcp | restore cursor position | ESC [ u | Xv, Xh, H |
ri | reverse index | ESC M | Xv, Xh, H, V |
ris | reset to initial state | ESC c | Xv, Xh, H, V |
rm | reset mode, ANSI specified modes: See "set mode" following in this column. | ESC [ Ps;...;Ps |
|
|
reset mode, other private modes and XTERM private modes: See "set mode" following in this column. | ESC [ ? Ps;...;Ps l |
|
|
restore mode, other private modes and XTERM private modes: See "set mode" following in this column. | ESC [ ? P;...;Ps r |
|
|
save mode, other private modes and XTERM private modes: See "set mode" following in this column. | ESC [ ? Ps;...;Ps s |
|
sapv | select alternate presentation variant | ESC [Ps1;...Psn] | Xh |
|
0 set default values for BIDI |
|
|
|
1 set Arabic numeric shapes |
|
|
|
2 set Hindi numeric shapes |
|
|
|
3 set symmetric swapping mode for directional characters |
|
|
|
5 the following graphic character is presented in its isolated form (Arabic only) |
|
|
|
6 the following graphic character is presented in its initial form (Arabic only) |
|
|
|
7 the following graphic character is presented in its middle form (Arabic only) |
|
|
|
8 the following graphic character is presented in its final form (Arabic only) |
|
|
|
13 set Special shaping mode |
|
|
|
14 set standard shaping mode |
|
|
|
15 reset symmetric mode |
|
|
|
18 Passthru (everything) |
|
|
|
19 Passthru (everything except numbers) |
|
|
|
20 Contextual numbers (device dependent) |
|
|
|
21 lock 5, 6, 7, 8 |
|
|
|
22 unlock |
|
|
|
23 set the nonull mode |
|
|
|
24 reset the nonull mode |
|
|
|
Values 5-8 effect only the following character unless used with values 21 or 22. |
|
|
scp | save cursor position | ESC [ s | Xv, Xh, H |
scs | select character set |
|
|
|
United Kingdom Set | ESC ( A (GO) | Xv, V |
|
|
ESC ) A (G1) | Xv, V |
|
|
ESC * A (G2) | Xv, V |
|
|
ESC + A (G3) | Xv, V |
|
ASCII Set (USASCII) | ESC ( B (G0) | Xv, V |
|
|
ESC ) B (G1) | Xv, V |
|
|
ESC * B (G2) | Xv, V |
|
|
ESC + B (G3) | Xv, V |
|
special graphics | ESC ( 0 (G0) | Xv, V |
|
|
ESC ) 0 (G1) | Xv, V |
|
|
ESC * 0 (G2) | Xv, V |
|
|
ESC + 0 (G3) | Xv, V |
sd | scroll down | ESC [ Pn T | H |
sl | scroll left | ESC [ Pn Sp @ | H |
spd | select screen direction | ESC [Ps1;1 S | Xh |
|
0 turn screen to left-to-right, set to Latin keyboard |
|
|
|
1 turn screen direction to right-to-left set to National keyboard |
|
|
sr | scroll right | ESC [ Pn Sp A | H |
srs | select reversed string | ESC [Ps[ | Xh |
|
0 end push |
|
|
|
1 start push |
|
|
ss2 | single shift G2 | ESC N | Xv |
ss3 | single shift G3 | ESC O | Xv |
su | scroll up | ESC [ Pn S | Xv, Xh, H |
sgr | set graphic rendition | ESC [ Ps m |
|
|
0 normal |
|
Xv, Xh, H, V |
|
1 bold |
|
Xv, Xh, H, V |
|
4 underscore |
|
Xv, Xh, H, V |
|
5 blink (appears as bold) |
|
Xv, Xh, H, V |
|
7 reverse |
|
Xv, Xh, H, V |
|
8 invisible |
|
Xh, H |
|
10..17 fonts |
|
Xh, H |
|
30..37 foreground colors |
|
Xh, H |
|
40..47 background colors |
|
Xh, H |
|
90..97 foreground colors |
|
Xh, H |
|
100..107 background colors |
|
Xh, H |
sg0a | set GO character set | ESC ( < | Xh, H |
sg1a | set G1 character set | ESC ) < | Xh, H |
sm | set mode |
|
|
|
ANSI specified modes | ESC [ Ps;...;Ps h |
|
|
4 IRM insert mode |
|
Xv, Xh, H |
|
12 SRM send/rec mode |
|
H |
|
18 TSM tab stop mode |
|
H |
|
20 LNM linefeed/newline |
|
Xv, Xh, H, V |
|
Other private modes | ESC [ ? Ps;...;Ps h |
|
|
1 normal/application cursor |
|
Xv, V |
|
3 80/132 columns |
|
Xv, Xh, V |
|
4 smooth/jump scroll |
|
Xv, Xh, V |
|
5 reverse/normal video |
|
Xv, Xh, V |
|
6 origin/normal |
|
Xv, Xh, V |
|
7 on/off autowrap |
|
Xv, Xh, H, V |
|
8 on/off autorept |
|
Xv, Xh, V |
|
21 CNM CR-NL |
|
H |
|
XTERM private modes |
|
|
|
40 132/80 column mode |
|
Xv, Xh |
|
41 curses(5) fix |
|
Xv, Xh |
|
42 hide/show scroll bar |
|
Xv, Xh |
|
43 on/off save scroll text |
|
Xv, Xh |
|
44 on/off margin bell |
|
Xv, Xh |
|
45 on/off reverse wraparound |
|
Xv, Xh |
|
47 alternate/normal screen buffer |
|
Xv, Xh |
|
48 reverse/normal status line |
|
Xv, Xh |
|
49 page/normal scroll mode |
|
Xv, Xh |
tbc | tabulation clear | ESC [ Ps g (default Ps =0) |
|
|
0 clear horizontal tab stop at active position |
|
Xv, Xh, H, V |
|
1 vertical tab at line indicated by cursor |
|
H |
|
2 horizontal tabs on line |
|
H |
|
3 all horizontal tabs |
|
Xv, Xh, H, V |
|
4 all vertical tabs |
|
H |
VTD | virtual terminal data | ESC [ x | Xv, Xh, H |
VTL | virtual terminal locator report | ESC [ y | Xh, H |
VTR | vt raw keyboard input | ESC [ w | Xh, H |
vts | vertical tab stop | ESC I | H |
xes | erase status line | ESC [ ? E | Xv, Xh |
xrs | return from status line | ESC [ ? F | Xv, Xh |
xhs | hide status line | ESC [ ? H | Xv, Xh |
xss | show status line | ESC [ ? S | Xv, Xh |
xgs | go to column of status line | ESC [ ? Ps T | Xv, Xh |
xst | set text parameters | ESC ] Ps ; Pt \007 | Xv, Xh |
|
0 change window name and title to Pt |
|
Xv, Xh |
|
1 sets only the icon name |
|
Xv, Xh |
|
2 sets only the title name |
|
Xv, Xh |
|
Everything between ESC-P and ESC\ is ignored. aixterm will work as usual after the ESC\. | ESC-P...ESC\ | Xv, Xh |
When you create a terminal window, the aixterm command allows you to select text and copy it within the same window or other windows by using copy, paste, and re-execute button functions. These text functions are available in HFT and VT102 emulations. The selected text is highlighted while the button is pressed.
The copy, paste, and re-execute button functions perform as follows:
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, you can 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 treat it as if it were a text file, that is, the text is delimited by new lines.
The aixterm command has two different menus:
Each menu pops up under the correct combinations of key and button presses. Most menus are divided into two sections that are separated by a horizontal line. The top portion contains various modes that can be altered. A check mark is displayed next to a mode that is currently active. Selecting one of these modes toggles its state. The bottom portion of the menu provides the command entries; selecting one of these performs the indicated function.
The Options menu pops up when the Ctrl key and the left mouse button are pressed simultaneously while the mouse cursor is in a window. The menu contains items that apply to all emulation modes.
The Modes menu sets various modes for each emulation mode. The menu is activated by pressing the Ctrl key and the middle mouse button at the same time, while the mouse cursor is in the window. In the command section of this menu, the soft reset entry resets the scroll regions. This is convenient when a program leaves the scroll regions set incorrectly. The full reset entry clears the screen, resets tabs to every eight columns, and resets the terminal modes (such as wrap and smooth scroll) to their initial states after the aixterm command finishes processing the command-line options. When the Auto Linefeed option is turned on, a carriage return is added when a carriage return, vertical tab, or form feed is received. The shells generally do this for the linefeed, but not for the vertical tab or form feed.
The aixterm command supports an optional scroll bar composed of a scroll button that displays at the top of the scroll bar and a scroll region that displays at the bottom. The scroll bar is hidden until you request it to display.
The scroll region displays the position and amount of text currently showing in the window (highlighted) relative to the amount of text actually saved in the scrolling buffer. As more text is saved in the scrolling buffer (up to the maximum), the size of the highlighted area decreases.
The scroll button causes the window to scroll up and down within the saved text. Clicking the right button moves the window position up (the text scrolls downward); clicking the left button moves the window position down (the text scrolls upward). The amount of scrolling is modified by the Shift and Ctrl keys. If neither key is pressed, the window scrolls a single line at a time. Pressing the Shift key causes the text to scroll a full window at a time, minus one line. Pressing the Ctrl key causes the text to be positioned at the extreme top or bottom of the file.
Clicking the left mouse button (the copy function) twice in rapid succession causes all characters of the same class (that is, letters, white space, punctuation, and so on) to be selected. Because people have different preferences for what should be selected (for example, if file names be selected as a whole or only the separate subnames), you can override the default mapping by using the charClass (class CharClass) resource.
The charClass resource is a list of CharRange:Value pairs where the range is either a single number or a low-to-high number in the range of 0 to 127, corresponding to the ASCII 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.
The default table is as follows:
static int charClass[128] = {
/* NUL SOH STX ETX EOT ENQ ACK BEL */
32, 1, 1, 1, 1, 1, 1, 1,
/* BS HT NL VT NP CR SO SI */
1, 32, 1, 1, 1, 1, 1, 1,
/* DLE DC1 DC2 DC3 DC4 NAK SYN ETB */
1, 1, 1, 1, 1, 1, 1, 1,
/* CAN EM SUB ESC FS GS RS US */
1, 1, 1, 1, 1, 1, 1, 1,
/* SP ! " # $ % & ' */
32, 33, 34, 35, 36, 37, 38, 39,
/* ( ) * + , - . / */
40, 41, 42, 43, 44, 45, 46, 47,
/* 0 1 2 3 4 5 6 7 */
48, 48, 48, 48, 48, 48, 48, 48,
/* 8 9 : ; < = > ? */
48, 48, 58, 59, 60, 61, 62, 63,
/* @ A B C D E F G */
64, 48, 48, 48, 48, 48, 48, 48,
/* H I J K L M N O */
48, 48, 48, 48, 48, 48, 48, 48,
/* P Q R S T U V W */
48, 48, 48, 48, 48, 48, 48, 48,
/* X Y Z [ \ ] ^ _ */
48, 48, 48, 91, 92, 93, 94, 48,
/* ` a b c d e f g */
96, 48, 48, 48, 48, 48, 48, 48,
/* h i j k l m n o */
48, 48, 48, 48, 48, 48, 48, 48,
/* p q r s t u v w */
48, 48, 48, 48, 48, 48, 48, 48,
/* x y z { | } ~ DEL */
48, 48, 48, 123, 124, 125, 126, 1};
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 very useful for cutting and pasting electronic mailing addresses and UNIX file names.
It is possible to rebind keys (or sequences of keys) to arbitrary strings for input. Changing the translations for events other than key and button events is not expected, and causes unpredictable behavior.
The actions available for key translations are as follows:
For example, a debugging session might benefit from the following bindings:
*aixterm.Translations: #override <Key>F13: keymap(dbx) *aixterm.dbxKeymap.translations:\ <Key>F14: keymap(None) \n\ <Key>F17: string("next") string(0x0d) \n\ <Key>F18: string("step") string(0x0d) \n\ <Key>F19: string("continue") string(0x0d) \n\ <Key>F20: string("print") insert-selection(PRIMARY)
The key and button bindings for selecting text, pasting text, and activating the menus are controlled by the translation bindings. In addition to the actions listed in the Key Translations section, the following actions are available:
static char defaultTranslations = " <KeyPress>: insert() \n\ ~Shift Ctrl ~Meta <Btn1Down>: mode-menu(options) \n\ ~Shift Ctrl ~Meta <Btn2Down>: mode-menu() \n\ ~Shift Ctrl ~Meta <Btn3Down>: mode-menu(modes) \n\ ~Shift ~Ctrl ~Meta <Btn1Down>: select-start() \n\ ~Shift ~Ctrl ~Meta <Btn1Motion>: select-extend() \n\ ~Shift ~Ctrl ~Meta <Btn1Up>: select-end(PRIMARY)\n\ ~Shift ~Ctrl ~Meta <Btn2Down>: ignore() \n\ ~Shift ~Ctrl ~Meta <Btn2Up>: insert-selection(PRIMARY)\n\ ~Shift ~Ctrl ~Meta <Btn3Down>: start-extend() \n\ ~Shift ~Ctrl ~Meta <Btn3Motion>: select-extend() \n\ ~Shift ~Ctrl ~Meta <Btn3Up>: select-end(PRIMARY)\n\ Shift ~Ctrl ~Meta <Btn1Down>: reexecute() \n\ Shift ~Ctrl ~Meta <Btn1Motion>: select-extend() \n\ Shift ~Ctrl ~Meta <Btn1Up>: select-end(PRIMARY)\n\ Shift ~Ctrl ~Meta <Btn2Down>: select-start() \n\ Shift ~Ctrl ~Meta <Btn2Motion>: select-extend() \n\ Shift ~Ctrl ~Meta <Btn2Up>: select-end(PRIMARY)\n\ Shift ~Ctrl ~Meta <Btn3Down>: ignore() \n\ Shift ~Ctrl ~Meta <Btn3Up>: insert-selection(PRIMARY)\n\ Shift Ctrl ~Meta <BtnDown>: size(toggle) \n\ Shift Ctrl ~Meta <BtnUp>: ignore() \n\ <BtnDown>: bell(0) \n\ <BtnUp>: bell(0) \n\ ";
To run an aixterm with a different keyboard layout than the X server's (such as a French keyboard layout on a Swiss German X server), run the following commands:
xmodmap /usr/lpp/X11/defaults/xmodmap/Fr_FR/keyboard
aixterm &
xmodmap /usr/lpp/X11/defaults/xmodmap/Gr_SW/keyboard
The aixterm command continues to use the keyboard layout that the X server was using when the aixterm started. It ignores KeymapNotify by default.
The aixterm command uses the Input Method to convert the X server's keysyms into either printable characters or nonprintable escape strings such as function keys. The Input Method uses its own keymap files, in /usr/lib/nls/loc, to convert X keysyms into code points for the printable characters, and escape strings for nonprintable characters. There is a keymap file for each language and one keymap file for escape sequences. The escape sequences are in C@outbound.imkeymap; the source is C@outbound.imkeymap.src. The other keymap files begin with the locale name and look like: locale.imkeymap and locale.codeset.imkeymap. For example:
The following dependencies apply:
ASCII characters 32 (0x20) to 126 (0x7e) are available in most of the codesets and fonts. Characters (bytes) 0 (0x00) to 31 (0x1f) are treated as control sequences and unprintable characters. Other characters 127 (0x7f) to 255 (0xff) vary with codeset and fonts. Using a font that does not match the codeset the aixterm is started in leads to unpredictable results. For example, box characters (line drawing) are available in aixterm vt100 mode with the default vtsingle font. If you use a different font, other characters may be displayed instead. Another example is using a ISO8859-1 font while running in the IBM-850 codeset. Trying to display box characters (line drawing) generates accented characters. Trying to display accented characters generates different accented characters or blanks.
In addition to the above key and button bindings, the following key assignments for bidirectional languages are supported by the aixterm command:
The BIDI bindings (for Arabic/Hebrew) are:
~Shift ~Ctrl Mod1 <Key>Return: scr-rev() \n\ ~Shift ~Ctrl Mod2 <Key>Return: scr-rev() \n\ ~Shift ~Ctrl Mod1 <Key>Shift_L: ltr-lang() \n\ ~Shift ~Ctrl Mod2 <Key>Shift_L: ltr-lang() \n\ ~Shift ~Ctrl Mod1 <Key>Shift_R: rtl-lang() \n\ ~Shift ~Ctrl Mod2 <Key>Shift_R: rtl-lang() \n\ ~Shift ~Ctrl Mod1 <Key>KP_Multiply: col-mod() \n\ ~Shift ~Ctrl Mod2 <Key>KP_Multiply: col-mod() \n\ ~Shift ~Ctrl Mod1 <Key>KP_Divide: auto-push() \n\ ~Shift ~Ctrl Mod2 <Key>KP_Divide: auto-push() \n\ ~Shift ~Ctrl ~Meta <Key>KP_Divide: chg-push() \n\ ~Shift ~Ctrl Mod1 <Key>KP_1: shp-in() \n\ ~Shift ~Ctrl Mod2 <Key>KP_2: shp-in() \n\ ~Shift ~Ctrl Mod1 <Key>KP_1: shp-is() \n\ ~Shift ~Ctrl Mod1 <Key>KP_2: shp-is() \n\ ~Shift ~Ctrl Mod1 <Key>KP_3: shp-p() \n\ ~Shift ~Ctrl Mod2 <Key>KP_3: shp-p() \n\ ~Shift ~Ctrl Mod1 <Key>KP_4: shp-asd() \n\ ~Shift ~Ctrl Mod2 <Key>KP_4: shp-asd() \n\ ~Shift ~Ctrl Mod1 <Key>KP_7: shp-m() \n\ ~Shift ~Ctrl Mod2 <Key>KP_7: shp-m() \n\ ~Shift ~Ctrl Mod1 <Key>KP_8: shp-f() \n\ ~Shift ~Ctrl Mod2 <Key>KP_8: shp-f() \n\
You can change these values in the .Xdefaults file. For example, if you want to use Ctrl+Shift to change language layer, you can add the following line in the .Xdefaults file:
Translations: Ctrl<Key>Shift_R: rtl-lang() \n\ Ctrl<Key>Shift_L: ltr-lang()
A flag takes on the opposite value if the - (minus sign) is changed to a + (plus sign). The following options override those set in the .Xdefaults file:
-ah | Highlights the cursor at all times. |
-ar | Turns on the autoraise mode of aixterm, which
automatically raises the window (after a delay determined by the .Xdefaults keyword autoRaiseDelay) when the mouse
cursor enters the window. The default is off.
This flag can be turned on and off from the Options menu. |
- autopush | Enables the Autopush function for the visual text type. |
-b NumberPixels | Specifies the width in pixels of an inner border. The inner border is the distance between the outer edge of the characters and the window border. The default is 2. |
-bd Color | Specifies the color of the highlighted border on color displays. The default is black. |
-bg Color | Specifies the color of the window background on color displays. The default is white. |
-bw NumberPixels | Specifies the width of the window border in pixels. The default is 2 pixels. Some window managers can override this option. |
-C | Intercepts console messages. |
-ccCharRange:Value,... | Changes the types of characters that are part of a word. For example, the string -cc 48-52:3 would make the characters 01234 one word and 56789 a different word. The :3 defines a word group number 3. By default, numbers are in class 48. The character classes are used by cut and paste. |
-cr Color | Determines the color of the text cursor on color displays. The default is the foreground color. |
-csd CharShape | Specifies the default shape of Arabic text. The CharShape variable can be one of the following options:
|
-cu | Causes certain curses applications to display leading tabs correctly.
The default is off.
This flag can be turned on and off from the Modes menu. |
-display Name:Number | Identifies the host name and X Server display number where the aixterm command is to run. By default, aixterm gets the host name and display number from the DISPLAY environment variable. |
-dw | Causes the mouse cursor to move (warp) automatically to the center of the aixterm window when the aixterm icon window is deiconified. The default is off. |
-e Command | Specifies a command to be executed in the window. This flag runs
the command; it does not start a shell. If this flag is used, the command
and its arguments (if any) must be displayed last on the aixterm command line.
When the command exits, the aixterm command exits. |
-f0 Font | Specifies the name of the default font on the command line. Also
specifies the name of the font placed in position 0 in the font table. This
flag is similar to the -fn flag. For example, to specify
a default font on the command line, enter the following:
aixterm -f0 rom11 |
-f1 Font | Specifies the name of the font placed in position 1 in the font table. This flag is similar to the -fb flag. |
-f2 Font | Specifies the name of the font placed in position 2 of the font table. This flag is similar to the -fi flag. |
-f3 Font | Specifies the name of the font placed in position 3 of the font table. |
-f4 Font | Specifies the name of the font placed in position 4 of the font table. |
-f5 Font | Specifies the name of the font placed in position 5 of the font table. |
-f6 Font | Specifies the name of the font placed in position 6 of the font table. |
-f7 Font | Specifies the name of the font for position 7 in the font table. |
--f0 FontSet | Specifies the name of the font set for position 0 in the font table. This flag is similar to the -fn flag. |
--f1 FontSet | Specifies the name of the font set for position 1 in the font table. This flag is similar to the -fb flag. |
--f2 FontSet | Specifies the name of the font set for position 2 in the font table. This flag is similar to the -fi flag. |
--f3 FontSet | Specifies the name of the font set for position 3 in the font table. |
--f4 FontSet | Specifies the name of the font set for position 4 in the font table. |
--f5 FontSet | Specifies the name of the font set for position 5 in the font table. |
--f6 FontSet | Specifies the name of the font set for position 6 in the font table. |
--f7 FontSet | Specifies the name of the font set for position 7 in the font table. |
-fb Font | Specifies the name of the bold font. This font must be the same height and width as the normal font. |
-fi FontSet | Specifies the name of the italic font set. |
-fg Color | Determines the foreground color of the text on color displays. The default is black. |
-fn Font | Specifies the name of a normal full-text font set. Any fixed-width font set can be used. In HFT emulation, the default is Rom14.500 for a large display or Rom10.500 for a small display. In VT102 emulation, the default is vtsingle. To specify a font set in the resource file, use aixterm.Fontset FontSet. |
-fs Font | Specifies the name of the special graphics font. |
-fullcursor | Uses a full block cursor instead of the default underscore cursor. |
-geometry Geometry | Specifies the location and dimensions of a window. The default is 80x25+0+0. Some window managers (such as the mwm command) can override these defaults. |
#geometryGeometry | Specifies the location of an icon window. If specified, width and
height are ignored. Width and height are taken from the size of the bitmap
and the length of the title. The window manager can override the location
of the icon.
Note: When you use one of these values as part of an sh (shell) command, enclose the value in "" (double quotation marks). Normally, #(the pound sign) indicates a comment in a shell script. |
-help | Lists the available option flags. |
-i | Displays the icon window rather than the normal window when the window
is opened. The default is false.
Note: This flag does not work unless the window manager has started. |
-ib File | Specifies name of the bitmap file to read for use as the icon bitmap file instead of the default bitmap file. You can access a /usr/include/X11/bitmaps file from an operating system shell to see a sample bitmap file. |
-im InputMethod | Specifies a modifier string that identifies the input method to be used by the aixterm command. |
-j | Causes the aixterm command to move multiple
lines up at once (jump scroll) if many lines are queued for display. The default
is false.
This flag can be turned on and off from the Modes menu. |
-keywords | Lists the .Xdefaults keywords. |
-lang Language | Specifies the language to be used under the aixterm command. The language should follow the format for the locale, as used by the setlocale function. |
-l | Causes the aixterm command to append output
from the window to the end of the logfile file. The
default is false.
This flag can be turned on and off from the Options menu. This does not override LogInhibit in the .Xdefaults file. |
-leftscroll | Places the scroll bar on the left when it is displayed. The default is on the right side of the text window. |
-lf File | Specifies the file where the output is saved, instead of the default AixtermLog.XXXXXX file, where XXXXXX is the process ID of the aixterm command. The file is created in the directory where the aixterm command is started, or in the home directory for a login aixterm command. If the file name begins with a | (pipe
symbol), the rest of the string is interpreted as a command to be executed
by the shell, and a pipe is opened to the process.
This flag must be used in conjunction with the -l flag to work effectively. |
-ls | Causes the shell run under the aixterm command to be a login shell. The user's .login or .profile file is read, and the initial directory is usually the home directory. The default is false. |
-mb | Turns on the right margin bell. The default is false.
This flag can be turned on and off from the Modes menu. |
-mc Number | Determines the multiple-click time. This is used by the cut and paste button functions. |
-mn | Ignores the XMappingNotify event. The -mn flag is the default. |
-ms Color | Determines the color of the mouse cursor on color displays. The default is the foreground color. |
-n IconName | Specifies the icon name for use by the aixterm command. |
-name Application | Specifies the application name to use for the .Xdefaults file. |
-nb Number | Specifies the right margin distance at which the margin bell rings. The default is 10 spaces from the right edge of the window. |
-nobidi | Disables the Arabic/Hebrew functions such as screen reverse, while maintaining an Arabic/Hebrew locale. |
- nonulls | Enables a Nonulls mode in which nulls within a line are replaced by spaces. |
-nss NumShape | Specifies the default shape of numerals. The NumShape variable can be one of the following options:
|
- orient Orientation | Specifies the default screen orientation. The orientation can be
one of the following options:
|
-outline Color | Determines the color of the outline attribute (Keisen) on color displays.
The default is the foreground color.
The outline attribute for a character is similar to other character attributes such as bold or reverse video. The outline attribute is displayed as a box drawn to enclose a character or group of characters. |
-po Number | Specifies the number of lines from the previous screen that display on the screen when the window scrolls one page. The default is 1 line. |
-ps | Turns on the page scroll mode.
After a page of lines is displayed, the aixterm command stops displaying new lines and the text cursor is no longer displayed. Pressing the Enter key displays one new line. Pressing the Spacebar key or a character key displays a new page. The default is false. |
-pt Preedit | Specifies the pre-edit type for text composing. The possible pre-edit
types are:
|
-reduced | Causes the aixterm command to begin in reduced mode. |
-rfb Font | Specifies the name of the reduced bold font. This font must be the same width and height as the reduced normal font. |
-rfi Font | Specifies the name of the reduced italic font. This font must be the same width and height as the reduced normal font. |
-rfn Font | Specifies the name of the reduced normal font. |
-rfs Font | Specifies the name of the reduced special graphics font. |
-rf0 Font | Specifies the name of the reduced font placed in position 0 in the font table. This flag is similar to the -rfn flag. |
-rf1 Font | Specifies the name of the reduced font placed in position 1 in the font table. This flag is similar to the -rfb flag. |
-rf2 Font | Specifies the name of the reduced font placed in position 2 in the font table. This flag is similar to the -rfi flag. |
-rf3 Font | Specifies the name of the reduced font placed in position 3 in the font table. |
-rf4 Font | Specifies the name of the reduced font placed in position 4 in the font table. |
-rf5 Font | Specifies the name of the reduced font placed in position 5 in the font table. |
-rf6 Font | Specifies the name of the reduced font placed in position 6 in the font table. |
-rf7 Font | Specifies the name of the reduced font placed in position 7 in the font table. |
--rf0 FontSet | Specifies the name of the reduced fontset placed in position 0 in the font table. This flag is similar to the -rfn flag. |
--rf1 FontSet | Specifies the name of the reduced fontset placed in position 1 in the font table. This flag is similar to the -rfb flag. |
--rf2 FontSet | Specifies the name of the reduced fontset placed in position 2 in the font table. This flag is similar to the -rfi flag. |
--rf3 FontSet | Specifies the name of the reduced fontset placed in position 3 in the font table. |
--rf4 FontSet | Specifies the name of the reduced fontset placed in position 4 in the font table. |
--rf5 FontSet | Specifies the name of the reduced fontset placed in position 5 in the font table. |
--rf6 FontSet | Specifies the name of the reduced fontset placed in position 6 in the font table. |
--rf7 FontSet | Specifies the name of the reduced fontset placed in position 7 in the font table. |
-rv | Reverses the foreground and background colors. This becomes the normal
video mode.
This flag can be turned on and off from the Modes menu. |
-rw | Turns on the reverse-wraparound mode. The default is false.
This mode allows the cursor to wraparound from the leftmost column to the rightmost column of the previous line. This can be useful in the shell to allow erasing characters backwards across the previous line. This flag can be turned on and off from the Modes menu. |
-s | Turns off synchronous scrolling on the display. The default is true.
When this flag is specified, the aixterm command no longer attempts to keep the screen current while scrolling and can run faster when network latencies are very high. |
-sb | Causes the scroll bar to display. This flag can be turned on and off from the Modes menu. The default is off. |
-sf | Generates the Sun function keycodes for programmed-function (PF) keys in VT102 mode. |
-si | Specifies that while using the scroll bar to review previous lines
of text, the window is normally repositioned automatically at the bottom of
the scroll region before output to the screen is processed. The default is
true.
This flag disables window repositioning on output. |
-sk | Causes the window to be repositioned automatically in the normal
position at the bottom of the scroll region when a key is pressed. The default
is false.
This flag is intended for use with the scroll bar to review previous lines of text. Pressing a key also creates output, which is affected by the -si flag. This flag can be turned on and off from the Scrollbar menu. |
-sl NumberLines | Specifies the maximum number of lines to save that scroll off of the top of the window. The default is 64. |
-sn | Displays the status line to be displayed in normal video (the status line is still enclosed in a box). By default, the status line is displayed in reverse-video relative to the rest of the window. This flag can be turned on and off from the Modes menu. |
-st | Displays the status line on startup. The default is false. |
-suppress | Specifies that the preediting function in the input method IMIoctl call is suppressed. |
- symmetric | Enables the Symmetric Swapping mode for handling bidirectional character pairs such as <> and (). |
-T Title | Sets the title bar name, but not the icon name. If the -n option is not specified, or the icon name is not a specified keyword in the .Xdefaults file, the title is used as the icon name. |
-text TextType | Specifies the type of data stream. The TextType variable can be one of the following options: |
-ti | Displays the title to the right of the bitmap in the icon window. By default, the title is displayed under the bitmap (if the window manager allows it). |
-tm String | Specifies a series of terminal setting keywords followed by the characters that should be bound to those functions. Allowable keywords include: intr, quit, erase, kill, eof, eol, start, stop, susp, dsusp, rprnt, flush, weras, and lnext. |
-tn TerminalName | Specifies the terminal environment variable. Use the -tn flag to change the terminal environment variable only. The terminal environment variable should not be changed to match the terminal in which the X Server is running. The aixterm command has no direct access to the terminal where the X Server is running. |
-ut | Disables the addition of the login ID to /etc/utmp. |
-v | Enables VT102 emulation. By default, HFT is emulated.
Note: The keyboard map is needed for this mode. |
-vb | Enables the visual bell mode. The visual bell flashes the window on receipt of the Ctrl-G key combination instead of ringing the bell. The default is false. |
-W | Causes the mouse cursor to move (warp) to the middle of the aixterm window when the window is created. The default is false. |
-xrm String | Sets the resource string. For example, aixterm.foreground: blue |
-132 | Causes the sm/rm escape sequences to be recognized and the aixterm window to be resized as specified. Normally, the sm/rm escape
sequences that switch between the 80-column and 132-column modes are ignored.
The default is false.
This flag can be turned on and off from the Modes menu. |
Use the following keywords to set the defaults for the aixterm command.
The following example can be used to create an aixterm, specifying the size and location of the window, using a font other than the default, and also specifying the foreground color that is used in text. The aixterm command then runs a command in that window.
aixterm -geometry 20x10+0+175 -fn Bld14.500 -fg DarkTurquoise -e /tmp/banner_cmd &
The aixterm command is NOT an X Toolkit based application. Because of this, the aixterm command gets resource files as follows:
$XFILESEARCHPATH %T=app-defaults %N=Xdefaults %L=$LANG $XFILESEARCHPATH %T=app-defaults %N=Xdefaults %L= /usr/lpp/X11/defaults/$LANG/Xdefaults /usr/lpp/X11/defaults/Xdefaults /usr/lib/X11/$LANG/app-defaults/Xdefaults /usr/lib/X11/app-defaults/Xdefaults /usr/lpp/X11/defaults/app-defaults/Xdefaults
$XFILESEARCHPATH %T=app-defaults %N=Aixterm %L=$LANG $XFILESEARCHPATH %T=app-defaults %N=Aixterm %L= $XFILESEARCHPATH %T=app-defaults %N=aixterm %L=$LANG $XFILESEARCHPATH %T=app-defaults %N=aixterm %L= /usr/lpp/X11/defaults/$LANG/Aixterm /usr/lpp/X11/defaults/Aixterm /usr/lib/X11/$LANG/app-defaults/Aixterm /usr/lib/X11/app-defaults/Aixterm /usr/lib/X11/defaults/app-defaults/Aixterm /usr/lpp/X11/defaults/$LANG/aixterm /usr/lpp/X11/defaults/aixterm /usr/lib/X11/$LANG/app-defaults/aixterm /usr/lib/X11/app-defaults/aixterm /usr/lib/X11/defaults/app-defaults/aixterm
$XUSERFILESEARCHPATH %T=app-defaults %N=Aixterm %L=$LANG $XUSERFILESEARCHPATH %T=app-defaults %N=Aixterm %L= $XUSERFILESEARCHPATH %T=app-defaults %N=aixterm %L=$LANG $XUSERFILESEARCHPATH %T=app-defaults %N=aixterm %L= $XAPPLRESDIR/$LANG/Aixterm $XAPPLRESDIR/Aixterm $XAPPLRESDIR/$LANG/aixterm $XAPPLRESDIR/aixterm $HOME/$LANG/Aixterm $HOME/Aixterm $HOME/$LANG/aixterm
dpy->xdefaults (A.K.A. "RESOURCE_MANAGER" property) $HOME/$LANG/.Xdefaults $HOME/.Xdefaults
$XENVIRONMENT $HOME/$LANG/.Xdefaults-hostname $HOME/.Xdefaults-hostname
Note: XFILESEARCHPATH and XUSERFILESEARCHPATH support is limited to the %T, %N and %L substitution strings. Also, $LANG is actually whatever the result of the setlocale(LC_CTYPE,NULL) call is.
telnet, tn, or tn3270 command.
Bidirectionality and Character Shaping in AIX 5L Version 5.2 National Language Support Guide and Reference.