Copyright (c) 2005, Sun Microsystems, Inc.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
/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.
Reports current settings in a form that can be used as an argument to another stty command.
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:
Reports the same option settings as stty without arguments, but with the control characters in column format.
Everything stty knows about is printed. Same as -h option.
The terminal speed alone is reported on the standard output.
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.
Enable (disable) parity generation and detection.
Enable (disable) extended parity generation and detection for mark and space parity.
Select odd (even) parity, or mark (space) parity if parext is enabled.
Select character size (see termio(4I)).
Hang up line immediately.
Set terminal baud rate to the number given, if possible. (All speeds are not supported by all hardware interfaces.)
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.
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.
Hang up (do not hang up) connection on last close.
Same as hupcl (-hupcl).
Use two (one) stop bits per character.
Enable (disable) the receiver.
Assume a line without (with) modem control.
Enable hardware flow control. Raise the RTS (Request to Send) modem control line. Suspends output until the CTS (Clear to Send) line is raised.
Block (do not block) output from a non-current layer.
Ignore (do not ignore) break on input.
Signal (do not signal) INTR on break.
Ignore (do not ignore) parity errors.
Mark (do not mark) parity errors (see termio(4I)).
Enable (disable) input parity checking.
Strip (do not strip) input characters to seven bits.
Map (do not map) NL to CR on input.
Ignore (do not ignore) CR on input.
Map (do not map) CR to NL on input.
Map (do not map) upper-case alphabetics to lower case on input.
Enable (disable) START/STOP output control. Output is stopped by sending an STOP and started by sending an START.
Allow any character (only START) to restart output.
Same as -ixany.
Request that the system send (not send) START/STOP characters when the input queue is nearly empty/full.
Same as ixoff.
Echo (do not echo) BEL when the input line is too long.
Enable (disable) extended (implementation-defined) functions for input data.
Post-process output (do not post-process output; ignore all other output modes).
Map (do not map) lower-case alphabetics to upper case on output.
Map (do not map) NL to CR-NL on output.
Map (do not map) CR to NL on output.
Do not (do) output CRs at column zero.
On the terminal NL performs (does not perform) the CR function.
Use fill characters (use timing) for delays.
Fill characters are DELs (NULs).
Select style of delay for carriage returns (see termio(4I)).
Select style of delay for line-feeds (see termio(4I)).
Select style of delay for horizontal tabs (see termio(4I)).
Select style of delay for backspaces (see termio(4I)).
Select style of delay for form-feeds (see termio(4I)).
Select style of delay for vertical tabs (see termio(4I)).
Enable (disable) the checking of characters against the special control characters INTR, QUIT, and SWTCH. For information on SWTCH, see NOTES.
Enable (disable) canonical input (ERASE and KILL processing). Does not set MIN or TIME.
Equivalent to -icanon min 1 time 0.
Canonical (unprocessed) upper/lower-case presentation.
Echo back (do not echo back) every character typed.
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.
Same as echoe.
Echo (do not echo) NL after KILL character.
The same as echok (-echok); obsolete.
Echo (do not echo) NL.
Disable (enable) flush after INTR, QUIT, or SWTCH. For information on SWTCH, see NOTES.
Disable (enable) truncation of lines longer than 79 characters on a synchronous line. (Does not apply to the 3B2.)
Send (do not send) SIGTTOU for background processes.
Echo (do not echo) control characters as ^char, delete as ^?
Same as echoctl.
Echo (do not echo) erase character as character is ``erased''.
Same as echoprt.
BS-SP-BS erase (do not BS-SP-BS erase) entire line on line kill.
Same as echoke.
Output is (is not) being flushed.
Retype (do not retype) pending input at next read or input character.
Enable (disable) flush on a synchronous line after every write(2). (Does not apply to the 3B2.)
Use application mode (use line mode) on a synchronous line. (Does not apply to the 3B2.)
Enable (disable) RTS hardware flow control on input.
Enable (disable) CTS hardware flow control on output.
Enable (disable) DTER hardware flow control on input.
Enable (disable) RLSD hardware flow control on output.
Enable (disable) isochronous hardware flow control on input.
Get transmit clock from internal baud rate generator.
Get the transmit clock from transmitter signal element timing (DCE source) lead, CCITT V.24 circuit 114, EIA-232-D pin 15.
Get transmit clock from receiver signal element timing (DCE source) lead, CCITT V.24 circuit 115, EIA-232-D pin 17.
Get receive clock from internal baud rate generator.
Get receive clock from transmitter signal element timing (DCE source) lead, CCITT V.24 circuit 114, EIA-232-D pin 15.
Get receive clock from receiver signal element timing (DCE source) lead, CCITT V.24 circuit 115, EIA-232-D pin 17.
Transmitter signal element timing clock not provided.
Output receive clock on transmitter signal element timing (DTE source) lead, CCITT V.24 circuit 113, EIA-232-D pin 24, clock source.
Output transmit clock on transmitter signal element timing (DTE source) lead, CCITT V.24 circuit 113, EIA-232-D pin 24, clock source.
Receiver signal element timing clock not provided.
Output receive clock on receiver signal element timing (DTE source) lead, CCITT V.24 circuit 128, no EIA-232-D pin, clock source.
Output transmit clock on receiver signal element timing (DTE source) lead, CCITT V.24 circuit 128, no EIA-232-D pin, clock source.
Set control-character to c, where control-character is intr, quit, erase, kill, eof, eol, eol2, swtch, start, stop, susp, dsusp, rprnt, flush, werase, lnext min, ctab, time, or brk) (ctab is used with -stappl; min and time are used with -icanon; see termio(4I)). 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.
Set line discipline to i (0 < i < 127 ).
Enable parenb and cs7.
Disable parenb, and set cs8.
Same as evenp (-evenp).
Enable parenb, cs7, and parodd.
Disable parenb and parodd, and set cs8.
Same as oddp (-oddp).
Enable parenb, cs7, and parext.
Disable parenb and parext, and set cs8.
Enable parenb, cs7, parodd, and parext.
Disable parenb, parodd, and parext, and set cs8.
Enable (disable) raw input and output (no ERASE, KILL, INTR, QUIT, SWTCH, EOT, or output post processing). For information on SWTCH, see NOTES.
Unset (set) icrnl, onlcr. In addition -nl unsets inlcr, igncr, ocrnl, and onlret.
Set (unset) xcase, iuclc, and olcuc.
Same as lcase (-lcase).
Preserve (expand to spaces) tabs when printing.
Reset ERASE and KILL characters back to normal DEL and CTRL-u, respectively.
Reset all modes to some reasonable values.
Set all modes suitable for the terminal type term, where term is one of tty33, tty37, vt05, tn300, ti700, or tek.
Set normal asynchronous communications where clock settings are xcibrg, rcibrg, tsetcoff and rsetcoff.
Disable (enable) parenb, istrip, and opost, and set cs8 (cs7).
Disable (enable) parenb and istrip, and set cs8 (cs7).
Set options for a CRT (echoe, echoctl, and, if >= 1200 baud, echoke.)
Set all modes suitable for Digital Equipment Corp. operating systems users ERASE, KILL, and INTR characters to ^?, ^U, and ^C, decctlq, and crt.)
Set window size to n rows.
Set window size to n columns.
An alias for columns n.
Set vertical window size to n pixels.
Set horizontal window size to n pixels.
tabs (1), ioctl (2), termio (4I), termiox (4I), attributes (7)
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.