ptg10805159
Section 18.6 sttyCommand 691
TABDLY (c_oflag,XSI, Linux, Mac OS X, Solaris) Horizontal tab delay mask.
The values for the mask areTAB0,TAB1,TAB2,orTAB3.
The valueXTABSis equal toTAB3.This value causes the system to
expand tabs into spaces. The system assumes a tab stop every eight
spaces, and we can’t change this assumption.
TOSTOP (c_lflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) If set and if the
implementation supports job control, theSIGTTOUsignal is sent to the
process group of a background process that tries to write to its
controlling terminal. By default, this signal stops all the processes in the
process group. This signal is not generated by the terminal driver if the
background process that is writing to the controlling terminal is either
ignoring or blocking the signal.
VTDLY (c_oflag,XSI, Linux, Solaris) Vertical tab delay mask. The values for
the mask areVT0andVT1.
XCASE (c_lflag,Linux, Solaris) If set and ifICANONis also set, the terminal is
assumed to be uppercase only,and all input is converted to lowercase.
To input an uppercase character,precede it with a backslash. Similarly,
the system outputs an uppercase character by preceding it with a
backslash. (This option flag is obsolete today,since most, if not all,
uppercase-only terminals have disappeared.)
18.6 sttyCommand
All the options described in the previous section can be examined and changed from
within a program with thetcgetattrandtcsetattrfunctions (Section 18.4) or from
the command line (or a shell script) with thestty( 1 )command. This command is
simply an interface to the first six functions that we listed in Figure18.7. If we execute
this command with its-aoption, it displays all the terminal options:
$stty -a
speed 9600 baud; 25 rows; 80 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts
-dsrflow -dtrflow -mdmbuf
cchars: discard = ˆO; dsusp = ˆY; eof = ˆD; eol = <undef>;
eol2 = <undef>; erase = ˆH; erase2 = ˆ?; intr = ˆC; kill = ˆU;
lnext = ˆV; min = 1; quit = ˆ; reprint = ˆR; start = ˆQ;
status = ˆT; stop = ˆS; susp = ˆZ; time = 0; werase = ˆW;