Korean Solaris User's Guide

Using Aliases for Setting Locale

You can use aliases to change a terminal-emulation window between the Korean locales and ASCII/English locale from time to time without typing long command lines or editing your .dtlogin file and running source every time.

Setting up Locale Aliases for the Korn Shell

  1. Put aliases like the following in your .profile file.


    alias kor_EUC "export LANG=ko; /bin/stty cs8 -istrip defeucw"
    alias kor_UTF "export LANG=ko.UTF-8; /bin/stty cs8 -istrip \defeucw"
    alias asc "export LANG=C; /bin/stty cs7 istrip defeucw" 

Setting up Locale Aliases for the C Shell

  1. Put aliases like the following in your .cshrc file.


    alias kor_EUC "setenv LANG ko; /bin/stty cs8 -istrip defeucw"
    alias kor_UTF "setenv LANG ko.UTF-8; /bin/stty cs8 -istrip \defeucw"
    alias asc "setenv LANG C; /bin/stty cs7 istrip defeucw"