Korean Solaris User's Guide

TTY Setup Examples

The system administrator can add setterm in the startup script in /etc/rcn.d directory (where n is the run level), to run at the system boot time. Also, users can run the setterm command at login to configure the stream for their terminal, including the appropriate modules for Korean input code conversion. The following examples using setterm work as commands typed at a system prompt or included in system files such as .cshrc, .login, and the startup script. Such commands can either explicitly set the device type or use the terminfo database.

Configuring STREAMS for Korean Solaris Software

You can use the commands in this section to configure STREAMS modules.

    Use the following command to explicitly configure the STREAMS module for the EUC, completion code, terminal type.


    system% setterm -x EUC
    

    Use the following command to explicitly initialize the Packed STREAMS module that supports the combination code of KS C 5601-1987.


    system% setterm -x PACK
    

    Use the following command to explicitly initialize the Johap STREAMS module that supports a combination code of KS C 5601-1992.


    system% setterm -x JOHAP
    

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/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/conf.file.


    #
    KoreanPACK|PACKthrow \
    							popto zs|mcp|mti|ptem \
    							push kpack \
    							push ldterm \
    							push ttcompat \
    							run {stty defeucw} \
    							catch
    #
    KoreanJOHAP|JOHAP	throw \
    							popto zs|mcp|mti|ptem \
    							push kjohap \
    							push ldterm \
    							push ttcompat \
    							run {stty defeucw} \
    							catch
    #
    GenericEUC|EUCthrow \
    							popto zs|mcp|mti|ptem \
    							push ldterm \
    							push ttcompat \
    							run {stty defeucw} \
    							catch
    #
    ASCIIthrow \
    							popto zs|mcp|mti|ptem \
    							push ldterm \
    							push ttcompat \
    							catch
    # 

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
    #