Technical data
2.3.1 Converting Between Application and Terminal Codesets
Many terminals support only one codeset, which is a problem when you
work on one terminal and need to run applications in locales (particularly
Asian locales) that are based on a variety of codesets. Therefore, the
atty
driver provides a mechanism for converting between the codeset that an
application uses and the codeset that a terminal supports. You control
codeset conversion by using options on the stty command line.
The adec, jdec, and dec options of the stty command set terminal code
and application code appropriately for HP terminals and workstations. You
need to explicitly use the tcode option, for example, if you are logging in
from a Japanese terminal that does not support the same codeset as HP
terminals and workstations.
Table 2–2 specifies stty options that explicitly set terminal and application
code.
Table 2–2: The stty Options to Explicitly Set Application and Terminal Code
stty Option
Description
acode codeset
Sets application code to codeset.
tcode codeset
Sets terminal code to codeset.
code codeset
Sets both terminal code and application
code to codeset.
conv (-conv) Enables or disables codeset conversion
between internal code and the terminal
or application code. Codeset conversion
must be enabled for Asian terminal
features to work.
The following command lets you run an application that uses DEC Kanji
on a terminal that supports only Shifted JIS (a codeset prevalent in the
Japanese personal computer market):
% stty acode deckanji tcode SJIS
The technical reference manuals for the Asian language features, available
from the Programming Bookshelf of the operating system documentation Web
site, provide additional information about supported application codesets
and terminal codesets (http://www.tru64unix.compaq.com/docs/).
2.3.2 Command Line Editing That Supports Multibyte Characters
This section discusses how you enable and use command line editing when
Asian language support is installed on your system.
Using Asian Input Methods and Terminal Drivers 2–9










