Traditional Chinese Solaris User's Guide

/bin/stty Command

The -defeucw option to the /bin/stty command is used to modify STREAMS modules to reflect changes in the user's environment. The option does not work with a /usr/ucb version of stty, which has not been internationalized.

The following command queries the user's environment for information on EUC code set width and sets that information in the line discipline:


system% /bin/stty defeucw

For example, if the user has the environment variable LC_CTYPE set to locale, this option gets information on the number of bytes per character and the screen width per character for the code sets in the zh_TW environments. The option then sends this information to relevant modules in the stream.