HP-UX Reference (11i v2 04/09) - 7 Device (Special) Files, 9 General Information, Index (vol 10)
t
termio(7) termio(7)
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.
If
ECHOKE and ECHO are set, the KILL character is echoed by erasing each character on the line from
the CRT screen using using the method selected by
ECHOE and ECHOPRT.
If ECHOCTL and ECHO are set, all control characters (characters with codes between 0 and 37 octal)
other than ASCII TAB, ASCII NL, the START and STOP characters, ASCII CR, and ASCII BS are echoed
as ˆchar, where char is the character given by adding 100 octal to the control character’s code.
If
ECHOK is set and ECHOKE is not set, the NL character is echoed after the kill character to emphasize
that the line is being deleted.
If
ECHONL is set, the NL character is echoed even if
ECHO is clear. This is useful for terminals set to
local echo (that is, half duplex).
Unless escaped, the EOF character is not echoed. Because ASCII EOT is the default EOF character, this
prevents terminals that respond to EOT from hanging up.
If
NOFLSH is set, the normal flush of the input and output queues associated with quit, interrupt, and
suspend characters is not done. However, NOFLSH does not affect the flushing of data upon receipt of a
break when BRKINT is set.
If the
TOSTOP bit is set, an attempt by a process that is not in the foreground process group to write to
its controlling terminal will be denied when the process is not ignoring and not blocking the SIGTTOU
signal. If the write is denied and the process is a member of an orphaned process group
write()
returns −1 and sets errno to EIO and no signal is sent. If the write is denied and the process is a not a
member of an orphaned process group, the SIGTTOU signal is sent to that process group.
If
FLUSHO is set, data written to the terminal device is discarded. This bit is set by a program. A pro-
gram can cancel the FLUSHO effect by clearing FLUSHO.
If
PENDIN is set, any input that has not been read is reprocessed and possibly re-echoed when the next
character arrives as input.
If
ICANON is set, the ERASE, KILL, and EOF characters can be escaped by a preceding
\ character, in
which case no special function is done.
IEXTEN must be set before the ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, and PENDIN
functions are
allowed. In addition, the special characters WERASE and LNEXT are allowed only if
IEXTEN is set.
IEXTEN does not affect any other functions.
The initial local control value is all-bits-clear.
Special Control Characters
Special control characters are defined in the array c_cc. All of these special characters can be changed.
The subscript name and description for each element in both canonical and non-canonical mode are
shown in the following table.
Subscript Usage
Canonical Non-Canonical Description
VEOF EOF character
VEOL EOL character
VEOL2 EOL2 character
VERASE ERASE character
VWERASE WERASE character
VINTR VINTR INTR character
Section 7−−186 Hewlett-Packard Company − 12 − HP-UX 11i Version 2: September 2004