Advanced Programming in the UNIX® Environment

(lily) #1
ptg10805159

Section 18.5 Te rminal Option Flags 685


We now describe each of the flags.

ALTWERASE (c_lflag,FreeBSD, Mac OS X) If set, an alternate word-erase
algorithm is used when the WERASE character is entered. Instead of
moving backwarduntil the previous white space character,this flag
causes the WERASE character to move backwarduntil the first
nonalphanumeric character is encountered.
BRKINT (c_iflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) If this flag is
set andIGNBRKis not set, the input and output queues areflushed
when a BREAK is received, and aSIGINTsignal is generated. This
signal is generated for the foreground process group if the terminal
device is a controlling terminal.
If neitherIGNBRKnorBRKINTis set, then a BREAK is read as a single
character\0,unlessPARMRKis set; in that case the BREAK is read as the
3 - byte sequence\377,\0,\0.
BSDLY (c_oflag,XSI, Linux, Solaris) Backspace delay mask. The values for
the mask areBS0orBS1.
CBAUDEXT (c_cflag,Solaris) Extended baud rates. Used to enable baud rates
greater than B38400. (Wediscuss baud rates in Section 18.7.)
CCAR_OFLOW (c_cflag,FreeBSD, Mac OS X) Enable hardwareflow control of the
output using the RS-232 modem carrier signal Data-Carrier-Detect
(DCD).This is the same as the oldMDMBUFflag.
CCTS_OFLOW (c_cflag,FreeBSD, Mac OS X, Solaris) Enable hardwareflow control
of the output using the Clear-To-Send(CTS)RS-232 signal.
CDSR_OFLOW (c_cflag,FreeBSD, Mac OS X) Flow control the output according to
the Data-Set-Ready(DSR)RS-232 signal.
CDTR_IFLOW (c_cflag,FreeBSD, Mac OS X) Flow control the input according to the
Data-Terminal-Ready(DTR)RS-232 signal.
CIBAUDEXT (c_cflag,Solaris) Extended input baud rates. Used to enable input
baud rates greater than B38400. (Wediscuss baud rates in Section 18.7.)
CIGNORE (c_cflag,FreeBSD, Mac OS X) Ignorecontrol flags.
CLOCAL (c_cflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) If set, the
modem status lines areignored. This usually means that the device is
directly attached. When this flag is not set, anopenof a terminal device
usually blocks until the modem answers a call and establishes a
connection, for example.
CMSPAR (c_oflag,Linux) Select mark or space parity.IfPARODDis set, the
parity bit is always 1 (mark parity). Otherwise, the parity bit is always 0
(space parity).
CRDLY (c_oflag,XSI, Linux, Solaris) Carriage return delay mask. Possible
values for the mask areCR0,CR1,CR2,andCR3.
Free download pdf