HP-UX Reference (11i v2 04/09) - 1 User Commands N-Z (vol 2)

s
stty(1) stty(1)
NAME
stty - set the options for a terminal port
SYNOPSIS
stty [-a-g options ]
DESCRIPTION
stty sets or reports current settings of certain terminal I/O options for the device that is the current
standard input. The command takes four forms:
stty Report the settings of a system-defined set of options;
stty -a Report all of current option settings;
stty -g Report current settings in a form that can be used as an argument to another
stty command.
stty options Set terminal I/O options as defined by options.
For detailed information about the modes listed below from Control Modes through Local Modes as they
relate to asynchronous lines, see termio (7). For detailed information about the modes listed under
Hardware Flow Control Modes below, see termiox (7).
Options in the Combination Modes group are implemented using options in the previous groups. Note
that many combinations of options make no sense, but no sanity checking is performed.
options are selected from the following:
Control Modes
rows number Set the terminal window row size equal to number.
columns number Set the terminal window column size (width) equal to number. cols can be
used as an abbreviation for columns.
parenb (-parenb) Enable (disable) parity generation and detection.
parodd (-parodd) Select odd (even) parity.
cs5 cs6 cs7 cs8 Select character size (see termio(7)).
0 Hang up phone line immediately.
50 75 110 134.5 150 200 300 600 900 1200 1800 2400
3600 4800 7200 9600 19200 38400 57600 115200 230400 exta extb
Set terminal baud rate to the number given, if possible (some hardware inter-
faces do not support all of the speeds listed here). Speeds above 38400 are
supported on Series 700 only.
ispeed number Set terminal input baud rate to number.Ifnumber is zero, the input baud
rate is set to the value of the output baud rate.
ospeed number Set terminal output baud rate to number.Ifnumber is zero, the modem con-
trol lines are released, which in turn disconnects the line.
hupcl (-hupcl) Hang up (do not hang up) modem connection on last close.
hup (-hup) Same as hupcl (-hupcl).
cstopb (-cstopb) Use two (one) stop bits per character.
cread (-cread) Enable (disable) the receiver.
crts (-crts) Enable (disable) request-to-send.
clocal (-clocal) Assume a line without (with) modem control.
loblk (-loblk) Block (do not block) output from a noncurrent layer.
+resetGSP Reset the Guardian Service Processor (GSP) of the console. This mode can be
used only by the superuser. This is supported only on specific hardware.
Input Modes
ignbrk (-ignbrk) Ignore (do not ignore) break on input.
Section 1894 Hewlett-Packard Company 1 HP-UX 11i Version 2: September 2004