termio.7 (2010 09)

t
termio(7) termio(7)
ERASE VERASE #
KILL VKILL @
EOF VEOF Control-D
EOL VEOL NUL
EOL2 VEOL2 disabled
MIN VMIN NUL
TIME VTIME Control-D
SUSP VSUSP disabled
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
single break condition.
If
IGNBRK is set, the break condition is ignored. Therefore the break condition cannot be read by any
process. 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.
HP-UX 11i Version 3: September 2010 − 7 − Hewlett-Packard Company 7