HP-UX Reference (11i v1 00/12) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man7/!!!intro.7
________________________________________________________________
___ ___
t
termio(7) termio(7)
The following table shows the interrelationship between the flags IGNBRK, BRKINT, IGNPAR, and
PARMRK. The column marked Input gives various types of input characters received, indicated as follows:
0 NUL character (\0)
C Character other than NUL
P Parity error detected
F Framing error detected
Items enclosed in brackets indicate one or more of the conditions are true.
If the INPCK flag is clear, characters received with parity errors are not processed according to this table,
but instead, as if no parity error had occurred. Under the flag columns, Set indicates the flag is set,
Clear indicates the flag is not set, and X indicates the flag may be set or clear. The column labeled
Read shows the results that will be passed to the application code. A — indicates that no character or con-
dition is passed to the application code. The value SIGINT indicates that no character is returned, but
that the SIGINT signal is sent to the foreground process group of the controlling terminal.
Input IGNBRK BRKINT IGNPAR PARMRK Read
0[PF] Set X X X —
0[PF] Clear Set X X SIGINT
0[PF] Clear Clear X Set ’\377’,’\0’,’\0’
0[PF] Clear Clear X Clear ’\0’
C[PF] X X Set X —
C[PF] X X Clear Set ’\377’,’\0’,C
C[PF] X X Clear Clear ’\0’
’\377’ X X X Set ’\377’,’\377’
If
ISTRIP is set, valid input characters are first stripped to 7-bits, otherwise all 8-bits are processed.
If INLCR is set, a received NL character is translated into a CR character. If IGNCR is set, a received
CR
character is ignored (not read). If IGNCR is clear and ICRNL is set, a received CR character is translated
into a
NL character.
If IUCLC is set, a received uppercase alphabetic character is translated into the corresponding lowercase
character.
If IXON is set, start/stop output control is enabled. A received
STOP character suspends output and a
received
START character restarts output. If IXANY and IXON are set, any input character without a
framing or parity error restarts output that has been suspended. When these three flags are set, output
suspended, and an input character received with a framing or parity error, output resumes if processing it
results in data being read. When IXON is set, START and STOP characters are not read, but merely per-
form flow control functions. When
IXON is clear, the START andSTOP
characters are read.
If
IXOFF is set, start/stop input control is enabled. The system transmits a
STOP character when the
number of characters in the input queue exceeds a system defined value (high water mark). This is
intended to cause the terminal device to stop transmitting data in order to prevent the number of charac-
ters in the input queue from exceeding
MAX_INPUT. When enough characters have been read from the
input queue that the number of characters remaining is less than another system defined value (low water
mark), the system transmits a START character which is intended to cause the terminal device to resume
transmitting data (without risk of overflowing the input queue). In order to avoid potential deadlock,
IXOFF is ignored in canonical mode whenever there is no line delimiter in the input buffer. In this case,
the STOP character is not sent at the high water mark, but will be transmitted later if a delimiter is
received. If all complete lines are read from the input queue leaving only a partial line with no line delim-
iter, the START character is sent, even if the number of characters is still greater than the low water mark.
When ICANON is set and the input stream contains more characters between line delimiters than the high
water mark allows, there is no guarantee that IXOFF can prevent buffer overflow and data loss, because
the STOP character may not be sent in time, if at all.
If IMAXBEL is set, the ASCII BEL character is echoed if the input queue overflows. Further input is not
stored, but any input present in the input queue is not discarded. If IMAXBEL is clear, no ASCII BEL char-
acter is echoed, and the input already present in the input queue is discarded when the input queue
overflows.
The initial input control value is all bits clear.
HP-UX Release 11i: December 2000 − 8 − Section 7−−167
___
___