stty

形式

/usr/ucb/stty [-a] [-g] [-h] [modes]

機能説明

stty sets certain terminal I/O options for the device that is the
current standard output. Without arguments, stty reports the settings of certain options.

オプション

In this report, if a character is preceded by a caret (^),
then the value of that option is the corresponding CTRL character (for
example, ^h is CTRL-h. In this case, recall that CTRL-h is the
same as the BACKSPACE key.) The sequence ^@ means that an option has
a null value.

-a

Reports all of the option settings.

-g

Reports current settings in a form that can be used as an argument to another stty command.

-h

Reports all the option settings with the control characters in an easy to read column format.

Options in the last group are implemented using options in the previous
groups. Many combinations of options make no sense, but no sanity checking
is performed. Hardware flow control and clock modes options might not be
supported by all hardware interfaces. The options are selected from the following:

Special Requests

all

Reports the same option settings as stty without arguments, but with the control characters in column format.

everything

Everything stty knows about is printed. Same as -h option.

speed

The terminal speed alone is reported on the standard output.

size

The terminal (window) sizes are printed on the standard output, first rows and then columns. This option is only appropriate if currently running a window system.

size and speed always report on the settings of /dev/tty, and always report the settings to the standard output.

Set terminal baud rate to the number given, if possible. (All speeds are not supported by all hardware interfaces.)

ispeed 0 110 300 600 1200 1800 2400 4800 9600 19200 exta 38400 extb

Set terminal input baud rate to the number given, if possible. (Not all hardware supports split baud rates.) If the input baud rate is set to zero, the input baud rate is specified by the value of the output baud rate.

ospeed 0 110 300 600 1200 1800 2400 4800 9600 19200 exta 38400 extb

Set terminal output baud rate to the number given, if possible. (Not all hardware supports split baud rates.) If the baud rate is set to zero, the line is hung up immediately.

hupcl (-hupcl)

Hang up (do not hang up) 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.

clocal (-clocal)

Assume a line without (with) modem control.

crtscts (-crtscts)

Enable hardware flow control. Raise the RTS (Request to Send) modem control line. Suspends output until the CTS (Clear to Send) line is raised.

Local Modes

Enable (disable) the checking of characters against the special control characters INTR, QUIT, and SWTCH. For information on SWTCH, see NOTES.

icanon (-icanon)

Enable (disable) canonical input (ERASE and KILL processing). Does not set MIN or TIME.

cbreak (-cbreak)

Equivalent to -icanon min 1 time 0.

xcase (-xcase)

Canonical (unprocessed) upper/lower-case presentation.

echo (-echo)

Echo back (do not echo back) every character typed.

echoe (-echoe)

Echo (do not echo) ERASE character as a backspace-space-backspace string. Note: This mode erases the ERASEed character on many CRT terminals; however, it does not keep track of column position and, as a result, can be confusing on escaped characters, tabs, and backspaces.

crterase (-crterase)

Same as echoe.

echok (-echok)

Echo (do not echo) NL after KILL character.

lfkc (-lfkc)

The same as echok (-echok); obsolete.

echonl (-echonl)

Echo (do not echo) NL.

noflsh (-noflsh)

Disable (enable) flush after INTR, QUIT, or SWTCH. For information on SWTCH, see NOTES.

stwrap (-stwrap)

Disable (enable) truncation of lines longer than 79 characters on a synchronous line. (Does not apply to the 3B2.)

tostop (-tostop)

Send (do not send) SIGTTOU for background processes.

echoctl (-echoctl)

Echo (do not echo) control characters as ^char, delete as ^?

ctlecho (-ctlecho)

Same as echoctl.

echoprt (-echoprt)

Echo (do not echo) erase character as character is ``erased''.

prterase (-prterase)

Same as echoprt.

echoke (-echoke)

BS-SP-BS erase (do not BS-SP-BS erase) entire line on line kill.

crtkill (-crtkill)

Same as echoke.

flusho (-flusho)

Output is (is not) being flushed.

pendin (-pendin)

Retype (do not retype) pending input at next read or input character.

stflush (-stflush)

Enable (disable) flush on a synchronous line after every write(2). (Does not apply to the 3B2.)

stappl (-stappl)

Use application mode (use line mode) on a synchronous line. (Does not apply to the 3B2.)

Control Assignments

control-character c

Set control-character to c, where control-character is intr, quit, erase, kill, eof, eol, eol2, swtch, start, stop, susp, dsusp, rprnt, flush, werase, lnextmin, ctab, time, or brk) (ctab is used with -stappl; min and time are used with -icanon; see termio(7I)). If c is preceded by an (escaped from the shell) caret (^), then the value used is the corresponding CTRL character (for example, ``^d'' is a Control-d). ``^?'' is interpreted as DEL and ``^-'' is interpreted as undefined. For information on SWTCH, see NOTES.

属性

関連項目

注意事項

Solaris does not support any of the actions implied by swtch, which
was used by the sxt driver on System V release 4.
Solaris allows the swtch value to be set, and prints it out
if set, but it does not perform the swtch action.

The job switch functionality on Solaris is actually handled by job control.
susp is the correct setting for this.