ptg10805159
690 Te rminal I/O Chapter 18
ONLCR (c_oflag,XSI, FreeBSD, Linux, Mac OS X, Solaris) If set, map NL to
CR-NL on output.
ONLRET (c_oflag,XSI, FreeBSD, Linux, Solaris) If set, the NL character is
assumed to perform the carriage return function on output.
ONOCR (c_oflag,XSI, FreeBSD, Linux, Solaris) If set, a CR is not output at
column 0.
ONOEOT (c_oflag,FreeBSD, Mac OS X) If set, EOT (ˆD) characters are
discarded on output. This may be necessary on some terminals that
interpret Control-D as a hangup.
OPOST (c_oflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) If set,
implementation-defined output processing takes place. Refer to
Figure18.6 for the various implementation-defined flags for the
c_oflagfield.
OXTABS (c_oflag,FreeBSD, Mac OS X) If set, tabs areexpanded to spaces on
output. This produces the same effect as setting the horizontal tab delay
(TABDLY)toXTABSorTAB3.
PARENB (c_cflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) If set, parity
generation is enabled for outgoing characters, and parity checking is
performed on incoming characters. The parity is odd ifPARODDis set;
otherwise, it is even parity.See also the discussion of the INPCK,
IGNPAR,andPARMRKflags.
PAREXT (c_cflag,Solaris) Select mark or space parity.IfPARODDis set, the
parity bit is always 1 (mark parity). Otherwise, the parity bit is always 0
(space parity).
PARMRK (c_iflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) When set and
ifIGNPARis not set, a byte with a framing error (other than a BREAK)
or a byte with a parity error is read by the process as the three-character
sequence\377,\0,X,whereXis the byte received in error.IfISTRIP
is not set, a valid\377is passed to the process as\377,\377.If
neitherIGNPARnorPARMRKis set, a byte with a framing error (other
than a BREAK) or with a parity error is read as a single character\0.
PARODD (c_cflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) If set, the
parity for outgoing and incoming characters is odd parity.Otherwise,
the parity is even parity.Note that the PARENB flag controls the
generation and detection of parity.
ThePARODDflag also controls whether mark or space parity is used
when either theCMSPARorPAREXTflag is set.
PENDIN (c_lflag,FreeBSD, Linux, Mac OS X, Solaris) If set, any input that has
not been read is reprinted by the system when the next character is
input. This action is similar to what happens when we type the
REPRINT character.