Korean Solaris System Administrator's Guide

Configuring STREAMS for Korean Solaris Software

To explicitly configure the STREAMS module for EUC (Completion code) terminal type:


system% setterm -x EUC

For some more examples, consider using a Packed (Combination) code terminal, which uses either the Packed or Johap module.

To explicitly initialize the Packed STREAMS module, which supports a Combination code of KS C 5601-1987:


system% setterm -x PACK

To explicitly initialize the Johap STREAMS module, which supports a Combination code of KS C 5601-1992:


system% setterm -x JOHAP

This usage is independent of terminfo.

Further consider using a FAST-15 Packed code terminal on a system with an entry like the following (which is appropriate for such a terminal) in the terminfo database:


fast-15 | fast-pack | korean terminal packed mode,
devt=PACK,
use=vt100-w,

A configuring command that references this entry would be:


system% setterm -t fast-15

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


#
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
# 

For more information, refer to the setterm(1) man page.