date and time created 95/05/04 17:59:12 by christos
[unix-history] / usr / src / bin / stty / stty.1
index 67b2e5a..3d435dc 100644 (file)
@@ -1,71 +1,89 @@
-.\" Copyright (c) 1990 The Regents of the University of California.
-.\" All rights reserved.
+.\" Copyright (c) 1990, 1993, 1994
+.\"    The Regents of the University of California.  All rights reserved.
+.\"
+.\" This code is derived from software contributed to Berkeley by
+.\" the Institute of Electrical and Electronics Engineers, Inc.
 .\"
 .\" %sccs.include.redist.man%
 .\"
 .\"
 .\" %sccs.include.redist.man%
 .\"
-.\"     @(#)stty.1     6.8 (Berkeley) %G%
+.\"     @(#)stty.1     8.5 (Berkeley) %G%
 .\"
 .Dd 
 .Dt STTY 1
 .\"
 .Dd 
 .Dt STTY 1
-.Os BSD 4.4
+.Os
 .Sh NAME
 .Nm stty
 .Nd set the options for a terminal device interface
 .Sh SYNOPSIS
 .Nm stty
 .Sh NAME
 .Nm stty
 .Nd set the options for a terminal device interface
 .Sh SYNOPSIS
 .Nm stty
-.Op Fl a Ar \&| Fl g
-.Nm stty
-.Op arguments
-.De
+.Op Fl a | Fl e | Fl g
+.Op Fl f Ar file
+.Op operands
 .Sh DESCRIPTION
 .Sh DESCRIPTION
-The stty utility sets or reports on terminal I/O
+The
+.Nm stty
+utility sets or reports on terminal
 characteristics for the device that is its standard input.
 characteristics for the device that is its standard input.
-Without options or arguments specified, it reports the
-settings of certain characteristics, usually those that differ
-from implementation-defined defaults.
+If no options or operands are specified, it reports the settings of a subset
+of characteristics as well as additional ones if they differ from their
+default values.
 Otherwise it modifies
 the terminal state according to the specified arguments.
 Some combinations of arguments are mutually
 exclusive on some terminal types.
 .Pp
 The following options are available:
 Otherwise it modifies
 the terminal state according to the specified arguments.
 Some combinations of arguments are mutually
 exclusive on some terminal types.
 .Pp
 The following options are available:
-.Tw Ds
-.Tp Fl a
-Write to standard output all the current settings
-for the terminal.
-.Tp Fl g
-Write the current settings to standard output in a
-form that can be used as arguments to
-another stty utility on the same system.
-.Tp
+.Bl -tag -width Ds
+.It Fl a
+Display all the current settings for the terminal to standard output
+as per
+.St -p1003.2 .
+.It Fl e
+Display all the current settings for the terminal to standard output
+in the traditional
+.Tn BSD
+``all'' and ``everything'' formats.
+.It Fl f
+Open and use the terminal named by
+.Ar file
+rather than using standard input.  The file is opened
+using the
+.Dv O_NONBLOCK
+flag of
+.Fn open ,
+making it possible to
+set or display settings on a terminal that might otherwise
+block on the open.
+.It Fl g
+Display all the current settings for the terminal to standard output
+in a form that may be used as an argument to a subsequent invocation of
+.Nm stty
+to restore the current terminal state as per
+.St -p1003.2 .
+.El
 .Pp
 The following arguments are available to set the terminal
 characteristics:
 .Pp
 The following arguments are available to set the terminal
 characteristics:
-.Tw Fl
-.Tc Cm parenb
-.Ws
-.Pf \&( Fl parenb )
-.Cx
+.Ss Control Modes:
+.Pp
+Control mode flags affect hardware characteristics associated with the
+terminal.  This corresponds to the c_cflag in the termios structure.
+.Bl -tag -width Fl
+.It Cm parenb Pq Fl parenb
 Enable (disable) parity generation
 and detection.
 Enable (disable) parity generation
 and detection.
-.Tc Cm parodd
-.Ws
-.Pf \&( Fl parodd )
-.Cx
+.It Cm parodd Pq Fl parodd
 Select odd (even) parity.
 Select odd (even) parity.
-.Tp Cm cs5 cs6 cs7 cs8
+.It Cm cs5 cs6 cs7 cs8
 Select character size, if possible.
 Select character size, if possible.
-.Tp Ar number
+.It Ar number
 Set terminal baud rate to the
 number given, if possible.
 If the
 baud rate is set to zero, modem
 control is no longer
 asserted.
 Set terminal baud rate to the
 number given, if possible.
 If the
 baud rate is set to zero, modem
 control is no longer
 asserted.
-.Tc Cm ispeed
-.Ws
-.Ar number
-.Cx
+.It Cm ispeed Ar number
 Set terminal input baud rate to the
 number given, if possible.
 If the
 Set terminal input baud rate to the
 number given, if possible.
 If the
@@ -73,310 +91,469 @@ input baud rate is set to zero, the
 input baud rate is set to the
 value of the output baud
 rate.
 input baud rate is set to the
 value of the output baud
 rate.
-.Tc Cm ospeed
-.Ws
-.Ar number
-.Cx
+.It Cm ospeed Ar number
 Set terminal output baud rate to
 the number given, if possible.
 If
 the output baud rate is set to
 zero, modem control is
 no longer asserted.
 Set terminal output baud rate to
 the number given, if possible.
 If
 the output baud rate is set to
 zero, modem control is
 no longer asserted.
-.Tc Cm hupcl
-.Ws
-.Pf \&( Fl hupcl )
-.Cx
+.ne 1i
+.It Cm speed Ar number
+This sets both
+.Cm ispeed
+and
+.Cm ospeed
+to
+.Ar number .
+.It Cm hupcl Pq Fl hupcl
 Stop asserting modem control
 (do not stop asserting modem control) on last close.
 Stop asserting modem control
 (do not stop asserting modem control) on last close.
-.Tc Cm hup
-.Ws
-.Pf \&( Fl hup )
-.Cx
+.It Cm hup Pq Fl hup
 Same as hupcl
 Same as hupcl
-.Ws
-.Pf \&( Fl hupcl).
-.Tc Cm cstopb
-.Ws
-.Pf \&( Fl cstopb )
-.Cx
+.Pq Fl hupcl .
+.It Cm cstopb Pq Fl cstopb
 Use two (one) stop bits per character.
 Use two (one) stop bits per character.
-.Tc Cm cread
-.Ws
-.Pf \&( Fl cread )
-.Cx
+.It Cm cread Pq Fl cread
 Enable (disable) the receiver.
 Enable (disable) the receiver.
-.Tc Cm clocal
-.Ws
-.Pf \&( Fl clocal )
-.Cx
+.It Cm clocal Pq Fl clocal
 Assume a line without (with) modem
 control.
 Assume a line without (with) modem
 control.
-.Tc Cm ignbrk
-.Ws
-.Pf \&( Fl ignbrk )
-.Cx
+.It Cm crtscts Pq Fl crtscts
+Enable RTS/CTS flow control.
+.El
+.Ss Input Modes:
+This corresponds to the c_iflag in the termios structure.
+.Bl -tag -width Fl
+.It Cm ignbrk Pq Fl ignbrk
 Ignore (do not ignore) break on
 input.
 Ignore (do not ignore) break on
 input.
-.Tc Cm brkint
-.Ws
-.Pf \&( Fl brkint )
-.Cx
-Signal (do not signal) INTR on
+.It Cm brkint Pq Fl brkint
+Signal (do not signal)
+.Dv INTR
+on
 break.
 break.
-.Tc Cm ignpar
-.Ws
-.Pf \&( Fl ignpar )
-.Cx
+.It Cm ignpar Pq Fl ignpar
 Ignore (do not ignore) parity
 errors.
 Ignore (do not ignore) parity
 errors.
-.Tc Cm parmrk
-.Ws
-.Pf \&( Fl parmrk )
-.Cx
+.It Cm parmrk Pq Fl parmrk
 Mark (do not mark) parity errors.
 Mark (do not mark) parity errors.
-.Tc Cm inpck
-.Ws
-.Pf \&( Fl inpck )
-.Cx
+.It Cm inpck Pq Fl inpck
 Enable (disable) input parity
 checking.
 Enable (disable) input parity
 checking.
-.Tc Cm istrip
-.Ws
-.Pf \&( Fl istrip )
-.Cx
+.It Cm istrip Pq Fl istrip
 Strip (do not strip) input characters
 to seven bits.
 Strip (do not strip) input characters
 to seven bits.
-.Tc Cm inlcr
-.Ws
-.Pf \&( Fl inlcr )
-.Cx
-Map (do not map) NL to CR on input.
-.Tc Cm igncr
-.Ws
-.Pf \&( Fl igncr )
-.Cx
-Ignore (do not ignore) CR on input.
-.Tc Cm icrnl
-.Ws
-.Pf \&( Fl icrnl )
-.Cx
-Map (do not map) CR to NL on input.
-.Tc Cm ixon
-.Ws
-.Pf \&( Fl ixon )
-.Cx
-Enable (disable) START/STOP output
+.It Cm inlcr Pq Fl inlcr
+Map (do not map)
+.Dv NL
+to
+.Dv CR
+on input.
+.It Cm igncr Pq Fl igncr
+Ignore (do not ignore)
+.Dv CR
+on input.
+.It Cm icrnl Pq Fl icrnl
+Map (do not map)
+.Dv CR
+to
+.Dv NL
+on input.
+.It Cm ixon Pq Fl ixon
+Enable (disable)
+.Dv START/STOP
+output
 control.
 Output from the system is
 stopped when the system receives
 control.
 Output from the system is
 stopped when the system receives
-STOP and started when the system
-receives START.
-.Tc Cm ixoff
-.Ws
-.Pf \&( Fl ixoff )
-.Cx
+.Dv STOP
+and started when the system
+receives
+.Dv START ,
+or if
+.Cm ixany
+is set, any character restarts output.
+.ne 1i
+.It Cm ixoff Pq Fl ixoff
 Request that the system send (not
 Request that the system send (not
-send) START/STOP characters when
+send)
+.Dv START/STOP
+characters when
 the input queue is nearly
 empty/full.
 the input queue is nearly
 empty/full.
-.Tc Cm opost
-.Ws
-.Pf \&( Fl opost )
-.Cx
+.It Cm ixany Pq Fl ixany
+Allow any character (allow only
+.Dv START )
+to restart output.
+.It Cm imaxbel Pq Fl imaxbel
+The system imposes a limit of
+.Dv MAX_INPUT
+(currently 255) characters in the input queue.  If
+.Cm imaxbel
+is set and the input queue limit has been reached,
+subsequent input causes the system to send an ASCII BEL
+character to the output queue (the terminal beeps at you).  Otherwise,
+if
+.Cm imaxbel
+is unset and the input queue is full, the next input character causes
+the entire input and output queues to be discarded.
+.El
+.Ss Output Modes:
+This corresponds to the c_oflag of the termios structure.
+.Bl -tag -width Fl
+.It Cm opost Pq Fl opost
 Post-process output (do not
 post-process output; ignore all other
 output modes).
 Post-process output (do not
 post-process output; ignore all other
 output modes).
-.Tc Cm isig
-.Ws
-.Pf \&( Fl isig )
-.Cx
+.It Cm onlcr Pq Fl onlcr
+Map (do not map)
+.Dv NL
+to
+.DV CR-NL
+on output.
+.It Cm oxtabs Pq Fl oxtabs
+Expand (do not expand) tabs to spaces on output.
+.El
+.Ss Local Modes:
+.Pp
+Local mode flags (lflags) affect various and sundry characteristics of terminal
+processing.
+Historically the term "local" pertained to new job control features
+implemented by Jim Kulp on a
+.Tn Pdp 11/70
+at
+.Tn IIASA .
+Later the driver ran on the first
+.Tn VAX
+at Evans Hall, UC Berkeley, where the job control details
+were greatly modified but the structure definitions and names
+remained essentially unchanged.
+The second interpretation of the 'l' in lflag
+is ``line discipline flag'' which corresponds to the
+.Ar c_lflag
+of the
+.Ar termios
+structure.
+.Bl -tag -width Fl
+.It Cm isig Pq Fl isig
 Enable (disable) the checking of
 characters against the special control
 Enable (disable) the checking of
 characters against the special control
-characters INTR, QUIT, and
-SUSP.
-.Tc Cm icanon
-.Ws
-.Pf \&( Fl icanon )
-.Cx
+characters
+.Dv INTR , QUIT ,
+and
+.Dv SUSP .
+.It Cm icanon Pq Fl icanon
 Enable (disable) canonical input
 Enable (disable) canonical input
-(ERASE and KILL processing).
-.Tc Cm iexten
-.Ws
-.Pf \&( Fl iexten )
-.Cx
+.Pf ( Dv ERASE
+and
+.Dv KILL
+processing).
+.It Cm iexten Pq Fl iexten
 Enable (disable) any implementation
 defined special control characters
 not currently controlled by icanon,
 isig, or ixon.
 Enable (disable) any implementation
 defined special control characters
 not currently controlled by icanon,
 isig, or ixon.
-.Tc Cm echo
-.Ws
-.Pf \&( Fl echo )
-.Cx
+.It Cm echo Pq Fl echo
 Echo back (do not echo back) every
 character typed.
 Echo back (do not echo back) every
 character typed.
-.Tc Cm echoe
-.Ws
-.Pf \&( Fl echoe )
-.Cx
-The ERASE character shall (shall
+.It Cm echoe Pq Fl echoe
+The
+.Dv ERASE
+character shall (shall
 not) visually erase the last character
 in the current line from the
 display, if possible.
 not) visually erase the last character
 in the current line from the
 display, if possible.
-.Tc Cm echok
-.Ws
-.Pf \&( Fl echok )
-.Cx
-Echo (do not echo) NL after KILL
+.It Cm echok Pq Fl echok
+Echo (do not echo)
+.Dv NL
+after
+.Dv KILL
 character.
 character.
-.Tc Cm echonl
-.Ws
-.Pf \&( Fl echonl )
-.Cx
-Echo (do not echo) NL, even if echo
+.ne 1i
+.It Cm echoke Pq Fl echoke
+The
+.Dv KILL
+character shall (shall
+not) visually erase the
+the current line from the
+display, if possible.
+.It Cm echonl Pq Fl echonl
+Echo (do not echo)
+.Dv NL ,
+even if echo
 is disabled.
 is disabled.
-.Tc Cm noflsh
-.Ws
-.Pf \&( Fl noflsh )
-.Cx
-Disable (enable) flush after INTR,
-QUIT, SUSP.
-.Tc Cm control-character
-.Ws
-.Ar string
-.Cx
-Set control-character to string.
+.It Cm echoctl Pq Fl echoctl
+If
+.Cm echoctl
+is set, echo control characters as ^X.  Otherwise control characters
+echo as themselves.
+.It Cm echoprt Pq Fl echoprt
+For printing terminals. If set, echo erased characters backwards within ``\\''
+and ``/''.  Otherwise, disable this feature.
+.It Cm noflsh Pq Fl noflsh
+Disable (enable) flush after
+.Dv INTR , QUIT , SUSP .
+.It Cm tostop Pq Fl tostop
+Send (do not send)
+.Dv SIGTTOU
+for background output.  This causes background jobs to stop if they attempt
+terminal output.
+.It Cm altwerase Pq Fl altwerase
+Use (do not use) an alternate word erase algorithm when processing
+.Dv WERASE
+characters.
+This alternate algorithm considers sequences of
+alphanumeric/underscores as words.
+It also skips the first preceding character in its classification
+(as a convenience since the one preceding character could have been
+erased with simply an
+.Dv ERASE
+character.)
+.It Cm mdmbuf Pq Fl mdmbuf
+If set, flow control output based on condition of Carrier Detect.  Otherwise
+writes return an error if Carrier Detect is low (and Carrier is not being
+ignored with the
+.Dv CLOCAL
+flag.)
+.It Cm flusho Pq Fl flusho
+Indicates output is (is not) being discarded.
+.It Cm pendin Pq Fl pendin
+Indicates input is (is not) pending after a switch from non-canonical
+to canonical mode and will be re-input when a read becomes pending
+or more input arrives.
+.El
+.Ss Control Characters:
+.Bl -tag -width Fl
+.It Ar control-character Ar string
+Set
+.Ar control-character
+to
+.Ar string .
 If string is a single character,
 the control character is set to
 that character.
 If string is the
 two character sequence "^-" or the
 string "undef" the control character
 If string is a single character,
 the control character is set to
 that character.
 If string is the
 two character sequence "^-" or the
 string "undef" the control character
-is set to {_POSIX_VDISABLE} if
-it is in effect for the device; if
-{_POSIX_VDISABLE} is not in effect
-for the device, it is an
-error.
+is disabled (i.e. set to
+.Pf { Dv _POSIX_VDISABLE Ns } . )
 .Pp
 Recognized control-characters:
 .Pp
 Recognized control-characters:
-.Ds I
-.Cw character Subscript
-.Cl control-   POSIX.1
-.Cl character  Subscript       Description
-.Cl _________  _________       _______________
-.Cl eof        VEOF    EOF character
-.Cl eol        VEOL    EOL character
-.Cl erase      VERASE  ERASE character
-.Cl intr       VINTR   INTR character
-.Cl kill       VKILL   KILL character
-.Cl quit       VQUIT   QUIT character
-.Cl susp       VSUSP   SUSP character
-.Cl start      VSTART  START character
-.Cl stop       VSTOP   STOP character
-.Cw
-.De
-.Tp Cm saved settings
+.Bd -ragged -offset indent
+.Bl -column character Subscript
+.It control-
+.It character  Subscript       Description
+.It _________  _________       _______________
+.It eof Ta Tn VEOF     EOF No character
+.It eol Ta Tn VEOL     EOL No character
+.It eol2 Ta Tn VEOL2   EOL2 No character
+.It erase Ta Tn VERASE ERASE No character
+.It werase Ta Tn VWERASE       WERASE No character
+.It intr Ta Tn VINTR   INTR No character
+.It kill Ta Tn VKILL   KILL No character
+.It quit Ta Tn VQUIT   QUIT No character
+.It susp Ta Tn VSUSP   SUSP No character
+.It start Ta Tn VSTART START No character
+.It stop Ta Tn VSTOP   STOP No character
+.It dsusp Ta Tn VDSUSP DSUSP No character
+.It lnext Ta Tn VLNEXT LNEXT No character
+.It reprint Ta Tn VREPRINT     REPRINT No character
+.It status Ta Tn VSTATUS       STATUS No character
+.El
+.Ed
+.It Cm min Ar number
+.It Cm time Ar number
+Set the value of min or time to
+number.
+.Dv MIN
+and
+.Dv TIME
+are used in
+Non-Canonical mode input processing
+(-icanon).
+.El
+.Ss Combination Modes:
+.Pp
+.Bl -tag -width Fl
+.It Ar saved settings
 Set the current terminal
 characteristics to the saved settings
 produced by the
 .Fl g
 option.
 Set the current terminal
 characteristics to the saved settings
 produced by the
 .Fl g
 option.
-.Tc Cm min
-.Ws
-.Ar number
-.Cx
-.Tc Cm time
-.Ws
-.Ar number
-.Cx
-Set the value of min or time to
-number.
-MIN and TIME are used in
-Non-Canonical mode input processing
-(-icanon).
-.Tc Cm evenp
-.Ws
-.Cx or 
-.Ws
-.Cm parity
-.Cx
+.It Cm evenp No or Cm parity
 Enable parenb and cs7; disable
 parodd.
 Enable parenb and cs7; disable
 parodd.
-.Tp Cm oddp
+.It Cm oddp
 Enable parenb, cs7, and parodd.
 Enable parenb, cs7, and parodd.
-.Tp Fl parity , evenp ,  oddp
+.It Fl parity , evenp ,  oddp
 Disable parenb, and set cs8.
 Disable parenb, and set cs8.
-.Tc Cm nl
-.Ws
-.Pf \&( Fl nl )
-.Cx
+.It Cm \&nl Pq Fl \&nl
 Enable (disable) icrnl.
 In addition
 -nl unsets inlcr and igncr.
 Enable (disable) icrnl.
 In addition
 -nl unsets inlcr and igncr.
-.Tp Cm ek
-Reset ERASE and KILL characters
+.It Cm ek
+Reset
+.Dv ERASE
+and
+.Dv KILL
+characters
 back to system defaults.
 back to system defaults.
-.Tp Cm sane
+.It Cm sane
 Resets all modes to reasonable values for interactive terminal use.
 Resets all modes to reasonable values for interactive terminal use.
-.Tp Cm tty
-Set the line discipline to the standard terminal line discipline TTYDISC.
-.Tp
-.Pp
-If the
-.Fl g
-option is specified, stty writes to standard output
-the current settings in a form that can be used as arguments
-to another instance of stty on the same system.
-.Pp
-If the
-.Fl a
-option is specified, all of the information about the current setting
-is written to standard output
-in the same format described for the arguments above.
-Unless otherwise specified, this information is displayed as
-<space>-separated tokens, on one or
-more lines, with one or more tokens per line.
-.Pp
-If no options are specified, a subset of the
-information displayed for the
-.Fl a
-option is displayed.
-.Pp
-If the terminal input speed and output speed are the same,
-the speed information is displayed as follows:
-.Pp
-.Ds I
-"speed %d baud;", <speed>
-.De
-.Pp
-Otherwise speeds are displayed as:
-.Pp
-.Ds I
-"ispeed %d baud; ospeed %d baud;", <ispeed>, <ospeed>
-.De
-.Pp
-Control characters are displayed as:
-.Pp
-.Ds I
-"%s = %s;", <control-character name>, <value>
-.De
+.It Cm tty
+Set the line discipline to the standard terminal line discipline
+.Dv TTYDISC .
+.It Cm crt Pq Fl crt
+Set (disable) all modes suitable for a CRT display device.
+.It Cm kerninfo Pq Fl kerninfo
+Enable (disable) the system generated status line associated with
+processing a
+.Dv STATUS
+character (usually set to ^T).  The status line consists of the
+system load average, the current command name, its process ID, the
+event the process is waiting on (or the status of the process), the user
+and system times, percent cpu, and current memory usage.
+.It Cm columns Ar number
+The terminal size is recorded as having
+.Ar number
+columns.
+.It Cm cols Ar number
+is an alias for
+.Cm columns.
+.ne 1i
+.It Cm rows Ar number
+The terminal size is recorded as having
+.Ar number
+rows.
+.It Cm dec
+Set modes suitable for users of Digital Equipment Corporation systems (
+.Dv ERASE ,
+.Dv KILL ,
+and
+.Dv INTR
+characters are set to ^?, ^U, and ^C;
+.Dv ixany
+is disabled, and
+.Dv crt
+is enabled.)
+.It Cm extproc Pq Fl extproc
+If set, this flag indicates that some amount of terminal processing is being
+performed by either the terminal hardware or by the remote side connected
+to a pty.
+.It Cm raw Pq Fl raw
+If set, change the modes of the terminal so that no input or output processing
+is performed. If unset, change the modes of the terminal to some reasonable
+state that performs input and output processing.  Note that since the
+terminal driver no longer has a single
+.Dv RAW
+bit, it is not possible to intuit what flags were set prior to setting
+.Cm raw .
+This means that unsetting
+.Cm raw
+may not put back all the setting that were previously in effect.
+To set the terminal into a raw state and then accurately restore it, the following
+shell code is recommended:
+.nf
+
+save_state=$(stty -g)
+stty raw
+\&...
+stty "$save_state"
+
+.fi
+.It Cm size
+The size of the terminal is printed as two numbers on a single line,
+first rows, then columns.
+.El
+.Ss Compatibility Modes:
 .Pp
 .Pp
-where value is either the character, or some visual
-representation of the character if it is non-printing, or
-the string "<undef>" if the character is disabled.
+These modes remain for compatibility with the previous version of
+the stty command.
+.Bl -tag -width Fl
+.It Cm all
+Reports all the terminal modes as with
+.Cm stty Fl a
+except that the control characters are printed in a columnar format.
+.It Cm everything
+Same as
+.Cm all .
+.It Cm cooked
+Same as
+.Cm sane .
+.It Cm cbreak
+If set, enables
+.Cm brkint , ixon , imaxbel , opost ,
+.Cm isig , iexten ,
+and
+.Cm Fl icanon .
+If unset, same as
+.Cm sane .
+.It Cm new
+Same as
+.Cm tty .
+.It Cm old
+Same as
+.Cm tty .
+.It Cm newcrt Pq Fl newcrt
+Same as
+.Cm crt .
+.It Cm pass8
+The converse of
+.Cm parity .
+.It Cm tandem Pq Fl tandem
+Same as
+.Cm ixoff .
+.It Cm decctlq Pq Fl decctlq
+The converse of
+.Cm ixany .
+.ne 1i
+.It Cm crterase Pq Fl crterase
+Same as
+.Cm echoe .
+.It Cm crtbs Pq Fl crtbs
+Same as
+.Cm echoe .
+.It Cm crtkill Pq Fl crtkill
+Same as
+.Cm echoke .
+.It Cm ctlecho Pq Fl ctlecho
+Same as
+.Cm echoctl .
+.It Cm prterase Pq Fl prterase
+Same as
+.Cm echoprt .
+.It Cm litout Pq Fl litout
+The converse of
+.Cm opost .
+.It Cm tabs Pq Fl tabs
+The converse of
+.Cm tabs .
+.It Cm brk Ar value
+Same as the control character
+.Cm eol .
+.It Cm flush Ar value
+Same as the control character
+.Cm discard .
+.It Cm rprnt Ar value
+Same as the control character
+.Cm reprint .
+.El
 .Pp
 The
 .Nm stty
 .Pp
 The
 .Nm stty
-utility exits with one of the following values:
-.Tw Ds
-.Tp Li \&0
-The terminal options were read or set successfully.
-.Tp Li \&>0
-An error occurred.
-.Tp
+utility exits with a value of 0 if successful, and >0 if an error occurs.
 .Sh SEE ALSO
 .Sh SEE ALSO
-.Xr stty 4
+.Xr termios 4
 .Sh STANDARDS
 The
 .Nm stty
 .Sh STANDARDS
 The
 .Nm stty
-function is expected to be POSIX 1003.2 compatible.
+function is expected to be
+.St -p1003.2
+compatible.  The flags
+.Fl e
+and
+.Fl f
+are
+extensions to the standard.