stty prints or changes terminal characteristics, such as baud rate. Synopses:
stty [option] [setting]... stty [option]
If given no line settings, stty prints the baud rate, line discipline number (on systems that support it), and line settings that have been changed from the values set by ‘stty sane’. By default, mode reading and setting are performed on the tty line connected to standard input, although this can be modified by the --file option.
stty accepts many non-option arguments that change aspects of the terminal line operation, as described below.
The program accepts the following options. Also see Common options.
O_NONDELAYflag to prevent a POSIX tty from blocking until the carrier detect line is high if the
clocalflag is not set. Hence, it is not always possible to allow the shell to open the device in the traditional manner.
Many settings can be turned off by preceding them with a ‘-’. Such arguments are marked below with “May be negated” in their description. The descriptions themselves refer to the positive case, that is, when not negated (unless stated otherwise, of course).
Some settings are not available on all POSIX systems, since they use extensions. Such arguments are marked below with “Non-POSIX” in their description. On non-POSIX systems, those or other settings also may not be available, but it's not feasible to document all the variations: just try it and see.
An exit status of zero indicates success, and a nonzero value indicates failure.