Korean Solaris User's Guide

Configuring STREAMS for the ko.UTF-8 Locale

You can use the commands in this section to configure STREAMS modules the ko.UTF-8 Locale.

    Use the following command to explicitly configure the STREAMS module for the ko.UTF-8 locale.


    system% setterm -x u8
    

    Use the following command to explicitly initialize an EUC terminal to use the ko.UTF-8 locale


    system% setterm -x ku8euc
    

    Use the following command to explicitly initialize the Johap STREAMS module. This module supports combination code of the KS C 5601-1992 terminal to use the ko.UTF-8 locale.


    system% setterm -x ku8johap
    system% stty defeucw cs8 -istrip
    

Use this procedure to run a configuration command that references an entry in the terminfo database.

  1. Add the following entry for a FAST-15 Packed code terminal to the terminfo database.


    fast-15 | fast-pack | korean terminal packed mode,
    devt=PACK,
    use=vt100-w,
  2. Use the following configuration command to reference the entry for the FAST-15 Packed code terminal.


    system% setterm -t fast-15
    

For setterm to work properly, the /usr/share/lib/setterm/ko.UTF-8/conf.file must contain an entry that corresponds to the device type. This entry gives setterm instructions for placing the appropriate conversion modules in the TTY stream.

    Add the following entry that corresponds to the device type to the /usr/share/lib/setterm/ko.UTF-8/conf.file.


    # Korean specific entries:
    #
    # Completion/Wansung/EUC code terminal support (KS C 5601-1992)
    KoreanU8EUC|KU8EUCthrow			\
    			popto zs|mcp|mti|ptem   \
    			push ku8euc		\
    			push eucu8		\
    			push ldterm		\
    			push ttcompat		\
    			push u8euc		\
    			run {stty defeucw}	\
    			catch
    #
    # Combination code terminal support (KS C 5601-1992 Annex 3)
    KoreanU8JOHAP|KU8JOHAPthrow			\
    			popto zs|mcp|mti|ptem   \
    			push ku8johap		\
    			push eucu8		\
    			push ldterm		\
    			push ttcompat		\
    			push u8euc		\
    			run {stty defeucw}	\
    			catch
    #