ldterm.7 (2010 09)
l
ldterm(7) ldterm(7)
processes it as for a TCGETS command, then converts the POSIX
termios information 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
maintains 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 infor-
mation for setting the character widths and screen widths of the EUC character sets. After
processing 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 character
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
environment:
TIOCEXCL
Set ‘exclusive-use’ mode. No further opens are permitted until the file has been closed.
TIOCNXCL
Turn off ‘exclusive-use’ mode.
TIOCSETD
The ldterm module does nothing but reply to this command. In a BSD system, the command
is used to set the current line discipline type. It does not have much meaning in a STREAMS
environment, because line discipline modules are changed by popping the current module from
the stream and pushing a different one onto the stream.
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: September 2010