Technical data

termio(7I) Ioctl Requests SunOS 5.5
16-19 reserved
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 upper-case to lower-case on input.
IXON Enable start/stop output control.
IXANY Enable any character to restart output.
IXOFF Enable start/stop input control.
IMAXBEL Echo BEL on input line too long.
If IGNBRK is set, a break condition (a character framing error with data all zeros)
detected on input is ignored, that is, not put on the input queue and therefore not read by
any process. If IGNBRK is not set and BRKINT is set, the break condition shall flush 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 sin-
gleASCII NULL character (´\0´), or if PARMRK is set, as ´\377´, ´\0´, ´\0´.
If IGNPAR is set, a byte with framing or parity errors (other than break) is ignored.
If PARMRK is set, and IGNPAR is not set, a byte with a framing or parity error (other
than break) is givento the application as the three-character sequence: ´\377´, ´\0´, X,
where X is the data of the byte received in error. To avoid ambiguity in this case, if
ISTRIP is not set, a valid character of ´\377´ is given to the application as ´\377´, ´\377´.
If neither IGNPAR nor PARMRK is set, a framing or parity error (other than break) is
given to the application as a singleASCII NULL character (´\0´).
If INPCK is set, input parity checking is enabled. If INPCK is not set, input parity check-
ing is disabled. This allows output parity generationwithout input parity errors. Note
that whether input parity checking is enabledor disabled is independent of whether par-
ity detection is enabledor disabled. If parity detection is enabled but input parity check-
ing is disabled, the hardware to which the terminal is connected will recognize the parity
bit, but the terminal special file will not check whether this is set correctly or not.
If ISTRIP is set, valid input characters are first stripped to seven bits, otherwise all eight
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). Otherwise, if ICRNL is set, a received CR
character is translated into a NL character.
7I-352 modified 30 May 1995