BSD | solaris | linux |
stty [-a | -e | -g] [-f file]
[operands ]
Sets or displays on terminal characteristics for the device that is its standard input.
Editor note: Many of these apply to terminals remotely connected serial communication lines
and are not applicatable to console .
Most interesting operatnds which do apply to CONSOLE are: isig, noflsh, size, rows, cols
|
If no options or operands reports the settings of a subset of characteristics as well as additional ones if they differ from their default values.
speed 9600 baud; lflags: echoe echoke echoctl pendin oflags: -oxtabs cflags: cs8 -parenb
-a
Display all the current settings for the terminal to standard output as per IEEE Std 1003.2 POSIX.2)
stty all|everything
Reports all the terminal modes as with stty -a
, except that the control characters are printed in a columnar format.
speed 9600 baud; 30 rows; 110 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 -iutf8 -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -oxtabs -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: eof = ^D; intr = ^C; kill†= ^U; quit = ^\; min = 1; reprint = ^R; status = ^T; stop = ^S; start = ^Q; discard = ^O; susp = ^Z; dsusp = ^Y; time = 0; lnext = ^V; erase = ^?; werase = ^W; eol = |
-e
Display all the current settings for the terminal to standard output in traditional BSD all
format.
speed 9600 baud; 30 rows; 110 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 -iutf8 -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -oxtabs -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf discard dsusp eof eol eol2 erase intr kill† lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q ^T ^S ^Z 0 ^W |
-f
Open and use the terminal named by file rather than using standard input. The file is
opened using the O_NONBLOCK flag of open, making it possible to set or display settings on a terminal that might otherwise block on the open.
-g
Display all the current settings for the terminal to standard output in a form that
may be used as an argument to a subsequent invocation of stty to restore the current
terminal state as per IEEE Std 1003.2 POSIX.2
gfmt1:cflag=4b00:iflag=2b02:lflag=200005cb:oflag=3:discard=f:dsusp=19:eof=4:eol=ff eol2=ff:erase=7f:intr=3:kill=15:lnext=16:min=1:quit=1c:reprint=12:start=11:status=14:stop=13 susp=1a:time=0:werase=17:ispeed=9600:ospeed=9600
c_cflag
in the termios
structure.
clocal |