> stty --h
Usage: stty [-F DEVICE] [--file=DEVICE] [SETTING]...
or: stty [-F DEVICE] [--file=DEVICE] [-a|--all]
or: stty [-F DEVICE] [--file=DEVICE] [-g|--save]
display or change terminal characteristics.
-a, --all display all current settings in human-readable form
-g, --save display all current settings in a stty-readable form
-F, --file=DEVICE open and use the specified DEVICE instead of stdin
--help display this help and exit
--version output version information and exit
|
| BSD | solaris |
stty -- set the options for a terminal device interface
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:
| ||||||||||||||||
If no options or operands are specified, it 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 displayed 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: discard = ^O; dsusp = ^Y; eof = ^D; 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 |
-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:Control Modes:
eol2=ff:erase=7f:intr=3:kill=15:lnext=16:min=1:quit=1c:redisplay=12:start=11:status=14:stop=13:
susp=1a:time=0:werase=17:ispeed=9600:ospeed=9600i
c_cflag in the termios structure.
nnnn | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||