Previous | Table of Contents | Next |
DESCRIPTION
The external stty command sets terminal I/O options for the standard input device. Your standard input device is usually a /dev/ptyXX device driver. If you are on a network, it might be a /dev/ttyXX device driver. Regardless of how you are connected to the UNIX operating system, you have a terminal I/O device driver. The stty command can be used to set and reset how the tty device driver functions.
The most common use of the stty command is to reset your erase and kill characters . Some people reset a few other options, but for the most part, the default settings handle all of the typical user s requirements.
COMMAND FORMAT
Following is the general format of the stty command.
stty [ -ag ] terminal-options
| |
BSD (Berkeley) | |
---|---|
stty terminal_options | |
|
Options
The following options may be used to control how stty functions.
-a | Displays all terminal option settings. |
-g | Displays the current terminal option settings in a format you can use as an argument to another stty command. |
Option Arguments
The following are special arguments that perform option type functions on BSD.
| |
BSD (Berkeley) | |
---|---|
all | Displays all normally used options. |
everything | Displays every setting stty knows about. |
speed | Displays the terminal/line speed (baud rate). |
size | Displays the number of rows and columns on the terminal. |
|
Arguments
The following list describes the arguments that may be passed to the stty command. These arguments are referred to as terminal-options . The terminal options enclosed in parentheses are the opposite settings. For example, ocrnl maps Return to new-line and (-ocrnl) unmaps Return to new-line. Not all terminal options have two settings.
NOTE:
Only the more common terminal-options are discussed. For a complete list refer to your vendor s User s Reference Manual.
Control Modes These terminal options control how your terminal and the computer communicate. Most of these options are set automatically when you log in to the system. Resetting these options may cause your terminal to perform strangely and/or even hang or disconnect.
Causes the device driver to hang up (disconnect) the phone immediately. | |
baud | Sets the baud rate of the device driver to baud . Supported baud rates vary depending on the hardware terminal interface boards . The baud rate must match the baud rate of your terminal. Popular baud rates are: 110, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400. |
cs n | Sets the character size to be n bits. It takes 7 bits to create one ASCII character. This size is used for transmitting the characters between your terminal and the system. The parity bit is not included in the character size. |
hup (-hup) hupcl (-hupcl) | Causes the terminal device driver to hang up (do not hang up) the phone when the last process attached to the device terminates. For example, when you log off the system your shell terminates and the driver hangs up the phone line automatically. |
| |
BSD (Berkeley) | |
---|---|
Same as SV | |
baud | Same as SV |
new | Enable new tty device driver. |
nohang (-nohang) | Do not (do) send hang-up signal if carrier drops . |
pass8 | All 8 bits are passed through on input. |
(-pass8) | Strips the 0200 bit on input except in raw mode. |
tandem (-tandem) | Enable (disable) flow control. |
tostop | Background jobs stop if they attempt to write to the terminal (standard output). Like loblk on SV. |
(-tostop) | Output from background jobs is allowed to the terminal. |
|
Previous | Table of Contents | Next |