listing for T
ttty - Thai terminal driver
This section describes special features supported by the Thai terminal
driver, which is used for conversational computing in a Thai environment.
See tty(7) for a general description of terminal interfaces. See stty(1)
for information on how to activate the features discussed here.
The Thai terminal driver is available only when Tru64 UNIX optional subsets
for worldwide support are installed. This driver also must be configured
into the current running kernel in order for Thai support features to be
Line discipline switching to the Thai terminal driver is accomplished with
the following TIOCSETD ioctl:
int ldisc = THAIDISC;
ioctl(f, TIOCSETD, &ldisc);
Input Sequence Checking
The Thai terminal driver supports input sequence checking that complies
with the Wototo standard. The three different modes of input sequence
checking are as follows:
· Mode 0 (pass-through)
No input checking is performed. This mode allows the application
program to handle checking of the input sequence.
· Mode 1 (basic check)
This is the default mode for a Thai system.
· Mode 2 (strict)
This mode imposes additional constraints in order to reject obviously
illegal input sequences.
Input reordering mode, if activated, will reorder the following two types
of Thai sequences:
· L3L1L2 -> L3L2L1
· L3L4L1 -> L3L1L4
In these sequences, L1, L2, L3, and L4 are level-1, level-2, level-3, and
level-4 characters, respectively.
History Mode Line Editing
The history mode of the Thai terminal driver allows users to use Emacs-like
control codes to edit previously entered command lines. Up to 32 lines can
be stored and each line can have a maximum width of 127 characters.
However, short command lines, those that are fewer than three characters in
length, are not stored in the history list.
Depending on the editing command used, the unit of editing may be a
character, a cell, or a word. A cell is one physical display column on the
screen and may consist of one ASCII character or one to three Thai
characters. In this context, a word is a string of characters delimited by
white spaces. The following editing commands are available in the history
Move to the beginning of the line.
Delete the cell under the cursor.
Move to the end of the line.
Recall the previous command in the history list.
Recall the next command in the history list.
Move the cursor to the left by one cell.
Move the cursor to the right by one cell.
Delete the Thai character immediately before the cursor. You can use
the stty command to determine and set the character that erases a
Delete the word before the cursor. You can use the stty command to
determine and set the character that erases a word.
Typing a normal character causes it to be inserted before the character
under the cursor. The kill, interrupt, and suspend characters cause the
Thai terminal driver to break out of the history mode.
Input sequence checking and input reordering are not performed in history
mode. The line-editing features support only single-line editing, not
multiple-line editing. For instance, if the cursor is wrapped to the
beginning of the next line, you cannot return the cursor to the previous
line by pressing the left arrow key.
Others: Thai(5), Wototo(5)
listing for T