HP-UX Reference (11i v3 07/02) - 7 Device (Special) Files, 9 General Information, Index (vol 10)
t
termio(7) termio(7)
START VSTART Control-Q
STOP VSTOP Control-S
WERASE VWERASE disabled
LNEXT VLNEXT disabled
DSUSP VDSUSP disabled
termio Structure
The termio structure has been superseded by the
termios structure and is provided for backward
compatibility with prior applications (see termio Caveats). The structure is defined in the header file
<termio.h> and is defined as follows:
#define NCC 8
struct termio {
unsigned short c_iflag; /* input modes */
unsigned short c_oflag; /* output modes */
unsigned short c_cflag; /* control modes */
unsigned short c_lflag; /* local modes */
char c_line; /* line discipline */
unsigned char c_cc[NCC]; /* control chars */
};
Modes
The next four sections describe the specific terminal characteristics that can be set using the
termios and
termio structures (see termio Caveats). Any bits in the modes fields that are not explicitly defined below
are ignored. However, they should always be clear to prevent future compatibility problems.
Input Modes
The
c_iflag field describes the basic terminal input control:
IGNBRK Ignore break condition.
BRKINT Signal interrupt on break.
IGNPAR Ignore characters with parity errors.
PARMRK Mark parity errors.
INPCK Enable input parity check.
ISTRIP Strip character.
INLCR Map NL to CR on input.
IGNCR Ignore CR.
ICRNL Map CR to NL on input.
IUCLC Map uppercase to lowercase on input.
IXON Enable start/stop output control.
IXANY Enable any character to restart output.
IXOFF Enable start/stop input control.
IMAXBEL Enable BEL on input line too long.
A break condition is defined as a sequence of zero-value bits that continues for more than the time to send
one character. For example, a character framing or parity error with data all zeros is interpreted as a sin-
gle break condition.
If IGNBRK is set, the break condition is ignored. Therefore the break condition cannot be read by any pro-
cess. If IGNBRK is clear and BRKINT is set, the break condition flushes both the input and output
queues and, if the terminal is the controlling terminal of a foreground process group, the break condition
generates a single SIGINT signal to that foreground process group. If neither IGNBRK nor BRKINT is
set, a break condition is read as a single \0 character, or if PARMRK is set, as the three-character
sequence \377, \0, \0.
If IGNPAR is set, characters with other framing and parity errors (other than break) are ignored.
If PARMRK is set, and IGNPAR is clear, a character with a framing or parity error (other than break) is
read as the three-character sequence: \377, \0, X, where X is the data of the character received in error.
To avoid ambiguity in this case, if
ISTRIP is clear, a valid character of \377 is read as \377, \377.If
both PARMRK and IGNPAR are clear, a framing or parity error (other than break) is read as the character
\0.
If INPCK is set, input parity checking is enabled. If INPCK is clear, input parity checking is disabled.
Whether input parity checking is enabled or disabled is independent of whether parity detection is enabled
or disabled (see Control Modes). If PARENB is set (see Control Modes) and INPCK is clear, parity
HP-UX 11i Version 3: February 2007 − 7 − Hewlett-Packard Company 215