Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

stty(1) OSS Shell and Utilities Reference Manual
NAME
stty - Sets terminal characteristics
SYNOPSIS
stty [-a | -g][-f special_device]
stty [-f special_device][argument ...]
The stty command sets or reports on terminal I/O characteristics for the device that is its
standard input.
FLAGS
-a Writes to standard output all the current settings for the terminal.
-f special_device
Allows you to specify an alternative terminal or tty device. Normally, the stty com-
mand works on your standard input.
-g Writes to standard output the current settings in an unspecified form that can be used as
input arguments to another stty command on the same system. (The form used will not
contain any characters that would require quoting; therefore, word expansion by the
shell is avoided.)
DESCRIPTION
Without flags or arguments specified, stty reports the settings of certain characteristics, usually
those that differ from implementation-defined defaults. Otherwise, stty modifies the terminal
state according to the specified arguments. Some combinations of arguments are mutually
exclusive on some terminal types.
Control Modes
The following arguments are available to set the terminal characteristics:
parenb (-parenb)
Enables (disables) parity generation and detection.
parodd (-parodd)
Selects odd (even) parity.
cs7 cs8 Selects character size, if possible.
hupcl (-hupcl)
Stops asserting modem control (does not stop asserting modem control) on last close.
hup (-hup)
Same as hupcl (-hupcl).
cstopb (-cstopb)
Uses two (one) stop bits per character.
cread (-cread)
Enables (disables) the receiver.
clocal (-clocal)
Assumes a line without (with) modem control.
Input Modes
ignbrk (-ignbrk)
Ignores (does not ignore) break on input.
864 Hewlett-Packard Company 527188-021