HP-UX Reference (11i v2 04/09) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

t
termio(7) termio(7)
If CLOCAL is set, a connection does not depend on the state of the modem status lines. If
CLOCAL is
clear, the modem status lines are monitored.
Under normal circumstances, a call to
read() waits for a modem connection to complete. However, if
either the
O_NDELAY or the O_NONBLOCK flags are set or
CLOCAL is set, the open() returns
immediately without waiting for the connection. If
CLOCAL
is set, see Modem Disconnect for the effects
of
read() and write() for those files for which the connection has not been established or has been
lost.
LOBLK is used by the shell layers facility (see shl(1)). The shell layers facility is not part of the general
terminal interface, and the
LOBLK bit is not examined by the general terminal interface.
The initial hardware control value after open is
B300, CS8, CREAD, and HUPCL.
Local Modes
The
c_lflag field is used to control terminal functions.
ISIG Enable signals.
ICANON Canonical input (erase and kill processing).
XCASE Canonical upper/lower presentation.
ECHO Enable echo.
ECHOE Echo ERASE as correcting backspace sequence.
ECHOK Echo NL after kill character.
ECHONL Echo NL.
NOFLSH Disable flush after interrupt, quit, or suspend.
TOSTOP Send SIGTTOU for background output.
ECHOCTL Echo control characters as ˆchar, DEL as ˆ?.
ECHOPRT Echo erased character as character is erased.
ECHOKE BS SP BS erase entire line on line kill.
FLUSHO Output is being flushed.
PENDIN Reprocess pending input at next read or input character.
IEXTEN Enable extended functions.
If
ISIG is set, each input character is checked against the special control characters INTR, QUIT, SUSP,
and DSUSP (see Process Group Control IOCTL Commands). If an input character matches one of these
control characters, the function associated with that character is performed and the character is dis-
carded. If ISIG is clear, no checking is done and the character is treated as a normal data character.
Thus these special input functions are possible only if ISIG is set.
If
ICANON is set, canonical processing is enabled. This enables the erase and kill edit functions, and the
assembly of input characters into lines delimited by NL, EOF, EOL, or EOL2. If
ICANON is clear, read
requests are satisfied directly from the input queue. A read blocks until at least MIN characters have
been received or the timeout value TIME has expired between characters. (See Non-Canonical Mode
Input Processing (MIN/TIME Interaction) ). This allows fast bursts of input to be read efficiently while
still allowing single-character input. The time value represents tenths of seconds.
If
XCASE is set, and if ICANON is set, an uppercase letter is accepted on input by preceding it with a \
character, and is output preceded by a \ character. In this mode, the following escape sequences are
generated on output and accepted on input:
To obtain: Use:
‘\
|\!
{\(
}\)
\\\
For example,
A is input as \a, \n as \\n, and \N as \\\n. XCASE would normally be used in con-
junction with IUCLC and OLCUC for terminals that support only the first-sixty-four-character limited
character set. In this case, IUCLC processing is done before XCASE for input, and processing is done
after XCASE for output. Therefore typing A causes an a to be read because of IUCLC, and typing \A
causes an A to be read since IUCLC produces \a which is turned into A by the XCASE processing.
If
ECHO is set, characters are echoed back to the terminal when received. If ECHO is clear, characters
are not echoed.
HP-UX 11i Version 2: September 2004 11 Hewlett-Packard Company Section 7185