unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (HP-UX-11.11)
Page:
Section:
Apropos / Subsearch:
optional field



 nlioinit(1M)							nlioinit(1M)




 NAME
      nlioinit - initialize Native Language I/O

 SYNOPSIS
      /usr/sbin/nlioinit tty pty tb [server]
      /usr/sbin/nlioinit -p lp_device pty pb [server]

 DESCRIPTION
      nlioinit initializes NLIO by attaching a translating server to a
      terminal or printer device.  If the optional argument -p is specified,
      nlioinit assumes that the device is a printer.

      The argument tty is the name of the terminal device file and lp_device
      is the name of the printer device file in /dev that is associated with
      the user terminal or the printer to which the server will be attached.

      The argument pty is the name of the master side of a pseudo terminal
      in /dev (for example, ptyp1, or ptym/ptyp1) that the server will use
      to perform the translation.  NLIO is available to the user process on
      the slave side of the pseudo terminal whose master is pty.

      The argument tb specifies the terminal behavior for the I/O, and is
      designated by the following values:

	   bc	       Simplified Chinese; HP terminal mode.

	   bt	       Traditional Chinese CCDC; HP terminal mode.

	   bt.big5     Traditional Chinese BIG5; HP terminal mode.

	   bt.cns      Traditional Chinese CNS; HP terminal mode.

	   vc	       Simplified Chinese; DEC VT terminal mode.

	   vt	       Traditional Chinese CCDC; DEC VT terminal mode.

	   vt.big5     Traditional Chinese BIG5; DEC VT terminal mode.

	   vt.cns      Traditional Chinese CNS; DEC VT terminal mode.

      The argument pb specifies the printer behavior for the I/O, and is
      designated by the following values:

	   hpc1200aj   for HPC1200A printer with Japanese font
	   hpc1200ak   for HPC1200A printer with Korean font
	   hpc1200ac   for HPC1200A printer with Simplified Chinese font
	   hpc1200at   for HPC1200A printer with Traditional Chinese CCDC
		       font
	   hpc1205at   for HPC1205A printer with Traditional Chinese
		       (CCDC/BIG5/CNS) font




 Hewlett-Packard Company	    - 1 -		HP-UX 11i : Oct 2000






 nlioinit(1M)							nlioinit(1M)




	   escpj       for ESC/P dot impact printer with Japanese font
	   escpk       for ESC/P dot impact printer with Korean font
	   escpc       for ESC/P dot impact printer with Simplified Chinese
		       font
	   escpt       for ESC/P dot impact printer with Traditional Chinese
		       (CCDC/BIG5/CNS) font

      The optional argument server is the name of the server that nlioinit
      invokes to perform NLIO.	If the server is not specified, the default
      server bserver for terminal or pserver for printer is invoked.

      Terminal servers are capable of conversion between file code (HP-15 or
      EUC) and external code (HP-15 or HP-16), although some features are
      not available on all servers.  When the stty(1) command option icanon
      is set, entering a single erase character erases the preceding single
      byte or multibyte input character.  The printer server is also capable
      of conversion from file code (HP-15 or EUC) to external code (HP-15 or
      HP-16).  Available terminal servers are bserevr, bserver.big5, and
      bserver.euc.  and Available printer servers are pserver, pserver.big5,
      and pserver.euc.

	   bserver	  Convert code between file code (HP-15) and
			  external code (HP-16 for HP terminal mode, or HP-
			  15 for DEC VT terminal mode) for the languages of
			  Simplified Chinese and Traditional Chinese CCDC.
			  bserver is not capable of host input conversion.

	   bserver.big5	  Convert code between file code (HP-15) and
			  external code (HP-16 for HP terminal mode, or HP-
			  15 for DEC VT terimnal mode) for the language of
			  Traditional Chinese BIG5.  bserver.big5 is not
			  capable of host input conversion.

	   bserver.euc	  is used for code conversion between file code
			  (EUC) and external code (HP-15) for the language
			  of Traditional Chinese CNS.  bserver.euc is not
			  capable of host input conversion.

	   pserver	  Convert code from file code (HP-15) to external
			  code (HP-16) for the languages of Japanese,
			  Korean, Simplified Chinese, and Traditional
			  Chinese CCDC.

	   pserver.big5	  Convert code from file code (HP-15) to external
			  code (HP-16) for the language of Traditional
			  Chinese BIG5.	 When the argument of hpc1200at is
			  specified, file code is converted to CCDC code
			  set.	When the argument of hpc1205at is specified,
			  BIG5 code set is used as external code set.





 Hewlett-Packard Company	    - 2 -		HP-UX 11i : Oct 2000






 nlioinit(1M)							nlioinit(1M)




	   pserver.euc	  Convert code from file code (EUC) to external code
			  (HP-16) for the Japanese language, and to external
			  code (HP-15) for Traditional Chinese CNS language.
			  When the argument of hpc1200at is specified, file
			  code is converted to CCDC code set.  When the
			  argument of hpc1205at is specified, CNS code set
			  is used as external code set.

 DIAGNOSTICS
      nlioinit complains about fatal errors to /dev/console.

 EXAMPLES
      To initialize NLIO for the terminal on /dev/tty0p1, add the following
      entries to the /etc/inittab file:

	   p1:2:respawn:/usr/sbin/getty -h pty/ttyp1 9600
	   s1:2:once:/usr/sbin/nlioinit tty0p1 ptym/ptyp1 bt

      then execute:

	   init 2

 WARNINGS
      If the specified terminal behavior is invalid or not appropriate to
      the invoked server, nlioinit does not warn the user and the server
      works with its default behavior.	8-bit character I/O is always
      available.  However, 16-bit character I/O may be unpleasant if, for
      example, code conversion is not done by the particular server
      selected.

      When the file code is based on HP-15 or EUC encoding scheme, do not
      set the tty special control characters such as intr, erase, and
      kill(see stty(1)) to ASCII characters with values in the range of \021
      to \0176 inclusive for the terminal that the NLIO server is associated
      with, because HP-15 can include these values as the second byte of a
      16-bit character code.

      The pty used by the server is allocated upon invocation of this
      command, and is thereafter made unavailable to other services.  The
      system administrator may want to consider adding more ptys to the
      system if many NLIO servers will be used.

 AUTHOR
      nlioinit was developed by HP.

 SEE ALSO
      nlio(1), nliostart(1), stty(1), getty(1M), init(1M), mknod(1M),
      inittab(4), lp(7), pty(7), termio(7).






 Hewlett-Packard Company	    - 3 -		HP-UX 11i : Oct 2000