coreutils: stty invocation
1
1 19.2 ‘stty’: Print or change terminal characteristics
1 =====================================================
1
1 ‘stty’ prints or changes terminal characteristics, such as baud rate.
1 Synopses:
1
1 stty [OPTION] [SETTING]...
1 stty [OPTION]
1
1 If given no line settings, ‘stty’ prints the baud rate, line
1 discipline number (on systems that support it), and line settings that
1 have been changed from the values set by ‘stty sane’. By default, mode
1 reading and setting are performed on the tty line connected to standard
1 input, although this can be modified by the ‘--file’ option.
1
1 ‘stty’ accepts many non-option arguments that change aspects of the
1 terminal line operation, as described below.
1
11 The program accepts the following options. Also see ⇒Common
options.
1
1 ‘-a’
1 ‘--all’
1 Print all current settings in human-readable form. This option may
1 not be used in combination with any line settings.
1
1 ‘-F DEVICE’
1 ‘--file=DEVICE’
1 Set the line opened by the file name specified in DEVICE instead of
1 the tty line connected to standard input. This option is necessary
1 because opening a POSIX tty requires use of the ‘O_NONDELAY’ flag
1 to prevent a POSIX tty from blocking until the carrier detect line
1 is high if the ‘clocal’ flag is not set. Hence, it is not always
1 possible to allow the shell to open the device in the traditional
1 manner.
1
1 ‘-g’
1 ‘--save’
1 Print all current settings in a form that can be used as an
1 argument to another ‘stty’ command to restore the current settings.
1 This option may not be used in combination with any line settings.
1
1 Many settings can be turned off by preceding them with a ‘-’. Such
1 arguments are marked below with “May be negated” in their description.
1 The descriptions themselves refer to the positive case, that is, when
1 _not_ negated (unless stated otherwise, of course).
1
1 Some settings are not available on all POSIX systems, since they use
1 extensions. Such arguments are marked below with “Non-POSIX” in their
1 description. On non-POSIX systems, those or other settings also may not
1 be available, but it’s not feasible to document all the variations: just
1 try it and see.
1
1 ‘stty’ is installed only on platforms with the POSIX terminal
1 interface, so portable scripts should not rely on its existence on
1 non-POSIX platforms.
1
1 An exit status of zero indicates success, and a nonzero value
1 indicates failure.
1
Menu