Technical data
Table 2–1: The stty Command Options for Controlling Terminal Line
Discipline
stty Option
Description
adec
Sets the terminal line discipline to handle multibyte data
and the processing environment appropriate for simplified
Chinese (Hanzi), traditional Chinese (Hanyu), and Korean
(Hangul) codesets. This option is supported for both the
STREAMS and BSD terminal drivers.
jdec
Sets the terminal line discipline to handle multibyte data
and the processing environment appropriate for Japanese
codesets. This option sets terminal code to dec and application
code to eucJP. The jdec option is supported for both the
STREAMS and BSD terminal drivers.
tdec
Sets the terminal line discipline to handle Thai characters and
the processing environment appropriate for the Thai codeset.
This option is supported only for the BSD terminal driver.
dec
Sets the terminal line discipline back to the default, or
standard, tty line discipline and clears characteristics that
preceding stty commands may have set for application
and terminal code. This option is supported for both the
STREAMS and BSD terminal drivers.
______________________ Note _______________________
Do not set the terminal line discipline to jdec or adec from a
console set up for kernel debugging (running the KDEBUG driver).
Doing so may cause the console to hang.
The stty command requires an appropriate locale setting to be in effect
before you can change the terminal line discipline to support that locale.
For example, to set your terminal line discipline to handle Korean, enter
the following:
% setenv LANG ko_KR.deckorean
% stty adec
To set your terminal line discipline back to the tty default, enter the
following:
% stty dec
______________________ Note _______________________
When your terminal line discipline is not set to the tty default
and you want to switch to another nondefault option (to switch
from jdec to adec, for example), first enter the stty dec
command to clear any application or terminal characteristics
Using Asian Input Methods and Terminal Drivers 2–7










