HP-UX Reference (11i v1 05/09) - 7 Device (Special) Files, 9 General Information, Index (vol 10)
l
ldterm(7) ldterm(7)
I/O control command and M_IOCTL message are stored for use on
M_IOCACK.
TCGETA This command get the old System V
termio information. The ldterm module converts the
message to a POSIX
termios M_IOCTL message, then forwards the message with the
TCGETS command. The original I/O control command and
M_IOCTL message are stored to be
used on
M_IOCACK. When it receives the matching
M_IOCACK message, the ldterm
module processes it as for a TCGETS command, then converts the POSIX
termios informa-
tion into the System V
termio information and replies.
TCSBRK The ldterm module forwards this command downstream to be handled by the driver so that
the driver has a chance to drain the data before sending an
M_IOCACK message upstream.
TCXONC This command controls the behavior of input/output flow control. If the argument is 0 and out-
put is not already stopped, an M_STOP message is sent downstream. If the argument is 1 and
the output is stopped, an
M_START message is sent downstream. If the argument is 2 and
input is not already stopped, an M_STOPI message is sent downstream. If the argument is 3
and input is stopped, an
M_STARTI message is sent downstream.
TCFLSH This command flush the input or/and output streams. If the argument is 0, an
M_FLUSH mes-
sage with a flag byte of
FLUSHR is sent downstream. This M_FLUSH (FLUSHR) message will
be reflected back upstream by the driver to flush the entire input stream. If the argument is 1,
an
M_FLUSH message with a flag byte of FLUSHW is sent upstream. This
M_FLUSH (FLUSHW) message will be reflected downstream by the stream head to flush the
entire output stream.
TIOCSWINSZ
This command sets the window size variables. The argument of this command takes a pointer to
a winsize structure. The ldterm module does not use the window size variable, but main-
tains it here for any needed replies to TIOCGWINSZ commands. The module forwards the
message downstream.
TIOCGWINSZ
When the ldterm module receives this command, it returns the window size variable that was
set by the last TIOCSWINSZ command. The argument of this command takes a pointer to a
winsize structure.
EUC_WSET
This command sets the character widths and screen widths for the EUC character sets. The
argument of this command takes a pointer to an eucioc structure which contains the informa-
tion for setting the character widths and screen widths of the EUC character sets. After process-
ing the command, ldterm forwards this message downstream to the next module.
EUC_WGET
This command returns the character widths and screen widths for the EUC character sets. This
command takes a pointer to an eucioc structure via which the EUC character widths and
screen widths information will be returned.
EUC_SET_HP15
This command put ldterm to the so called HP15 mode which enable ldterm to recognize
the HP15_SJIS, HP15_BIG5, HP15_CCDC, and HP15_GB character sets and process them in
such a way that they behave like EUC characters. The argument for this command takes a
pointer to an integer value which specify on of the above-mentioned four supported HP15 charac-
ter sets. If the argument is set to HP15_ASCII, then ldterm will switch back to normal ASCII
processing. EUC_WSET is mutually exclusive with EUC_SET_HP15 .
EUC_GET_HP15
This command returns the current HP15 character that has been set via the EUC_SET_HP15
command. This command takes a pointer to an integer via which the result is returned. If no
previous EUC_SET_HP15 has been issued, then it will return HP15_ASCII.
BSD 4.3 Compatible Terminal I/O Commands
The ldterm module acts on the following I/O commands, which are compatible with the BSD I/O environ-
ment:
TIOCEXCL
Set ‘exclusive-use’ mode. No further opens are permitted until the file has been closed.
Section 7−−62 Hewlett-Packard Company − 4 − HP-UX 11i Version 1: September 2005