HP-UX Reference (11i v3 07/02) - 7 Device (Special) Files, 9 General Information, Index (vol 10)
t
termio(7) termio(7)
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 discarded.
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 Pro-
cessing (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 gen-
erated on output and accepted on input:
To ob tain: 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.
When 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 and EOL2 as described in Canoni-
cal Mode Input Processing. Furthermore, the following echo functions are possible.
If ECHO and ECHOE are set, the ERASE and WERASE characters are echoed as the three-character
ASCII sequence BS SP BS, which clears the last character or word from the CRT screen.
If ECHO and ECHOPRT are set, and ECHOE is clear, the first ERASE and WERASE character in a
sequence echoes a backslash (\) followed by the characters being erased. Subsequent ERASE or WERASE
characters echo the characters being erased in reverse order. The next non-erase character causes a slash
(/) to be typed before it is echoed.
HP-UX 11i Version 3: February 2007 − 11 − Hewlett-Packard Company 219