atty - Asian terminal driver
This reference page describes the additional features supported in the Asian terminal driver used for conversational computing in a Japanese, Chinese, or Korean environment. See tty(7) for a description of the general terminal interface. See stty(1) for information on how to activate the features discussed here.
The Asian terminal driver is available only if you install the Tru64 UNIX optional subsets for worldwide support. The Asian terminal driver must be configured into the current running kernel in order for the features described below to be enabled.
Line discipline switching to the Asian terminal driver is accomplished with the TIOCSETD ioctl as follows:
int ldisc = ASYDISC;
ioctl(f, TIOCSETD, &ldisc);
A character for the Asian terminal driver can be composed of one or more bytes, depending on the terminal codeset selected by the user. In addition, the ISTRIP mask of the c_iflag field does not work with this driver. The erase character (VERASE) logically erases the whole character, which may be more than one byte long.
The Asian terminal driver allows an application to communicate with the driver in one codeset while the driver communicates with the physical device in another codeset. These two different codesets are called the application codeset and the terminal codeset, respectively. The driver performs any necessary codeset conversion on data passed between your application and the device.
The following application codesets are supported by the Asian terminal driver. The keyword that specifies the codeset in command parameters is shown in parentheses. DEC Kanji (deckanji) Super DEC Kanji (sdeckanji) Japanese EUC (eucJP) Shift JIS (SJIS) DEC Hanzi (dechanzi) DEC Hanyu (dechanyu) Taiwanese EUC (eucTW) DEC Korean (deckorean) Korean EUC (eucKR)
Reference pages are available for each codeset; for example, to find out more about the DEC Korean codeset, see deckorean(5).
The following terminal codesets are supported by the Asian terminal driver. The keyword that specifies the codeset in command parameters is shown in parentheses. DEC Kanji (dec) DEC Kanji - 1978 (dec78) Japanese EUC (eucJP) Shift JIS (SJIS) 7-bit JIS (jis7) 8-bit JIS (jis8) DEC Hanzi (dechanzi) Taiwanese EUC (eucTW) DEC Korean (deckorean) Korean EUC (eucKR)
These codesets are supported by the Asian terminal driver by default. Support for the BIG-5 (big5) codeset as application and terminal code and for Telecode (telecode), formerly Mitac Telex, as terminal code is also available. However, support for BIG-5 and Telecode codesets requires linking additional modules into the kernel.
The history mode supported by the Asian terminal driver allows the user to have Emacs-like control for editing previously entered command lines. Up to 32 lines can be stored in history mode, and each line can have a maximum length of 127 characters. When commands are long, it is possible that fewer than 32 commands are stored in the history list. Short commands, those less than three characters (single-byte or multibyte) in length, are not stored in the history list.
The following editing commands are available in history mode: Move to the beginning of line. Delete the character 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 left by one character. Move the cursor right by one character. Delete the character before the cursor. You can use the stty command to determine and set the character that erases a character. 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 Asian terminal driver to break out of history mode.
The Kana-Kanji conversion mechanism for Japanese allows users to enter an ASCII or Kana string and convert it to a Kanji or another Kana string. The conversion is supported in both cbreak and cooked mode, but activation of Kana-Kanji conversion is different for each mode. See kkc(5) for more information about Kana-Kanji conversion. See stty(1) on how to activate Kana-Kanji conversion under different modes.
The Software On-Demand Loading (SoftODL) mechanism allows users to display any number of user-defined characters (UDC) on terminals that support hardware On-Demand Loading (ODL). Refer to odl(5) for more information about on-demand loading of UDCs.
The Software phrase Input Method (SIM) mechanism for Chinese allows users to enter a long phrase by typing in a short phrase key. Refer to sim(5) for more information on this input mechanism.
Files: tty(7), utx(7)
Others: Chinese(5), Japanese(5), kkc(5), Korean(5), odl(5), sim(5) delim off