Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stty(1) — 386BSD 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stty(4)

STTY(1)                     386BSD Reference Manual                    STTY(1)

NAME
     stty - Set the options for a terminal device interface.

SYNOPSIS
     stty [-a | -e | -g] [-f file] [operands]

DESCRIPTION
     The stty utility sets or reports on terminal characteristics for the
     device that is its standard input.  If no options or operands are
     specified, it reports the settings of a set 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.

     The following options are available:

     -a      Display all the current settings for the terminal to standard
             output in the IEEE Std1003.2 (``POSIX'').

     -e      Display all the current settings for the terminal to standard
             output in the traditional BSD ``all'' and ``everything'' formats.

     -f      Display the current settings for the terminal named by file.

     -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 stty to restore the current terminal state.

     The following arguments are available to set the terminal
     characteristics:

     parenb (-parenb)
                 Enable (disable) parity generation and detection.

     parodd (-parodd)
                 Select odd (even) parity.

     cs5 cs6 cs7 cs8
                 Select character size, if possible.

     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.

     ispeed number
                 Set terminal input baud rate to the number given, if
                 possible.  If the input baud rate is set to zero, the input
                 baud rate is set to the value of the output baud rate.

     ospeed 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.

     hupcl (-hupcl)
                 Stop asserting modem control (do not stop asserting modem
                 control) 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.

     ignbrk (-ignbrk)
                 Ignore (do not ignore) break on input.

     brkint (-brkint)
                 Signal (do not signal) INTR on break.

     ignpar (-ignpar)
                 Ignore (do not ignore) parity errors.

     parmrk (-parmrk)
                 Mark (do not mark) parity errors.

     inpck (-inpck)
                 Enable (disable) input parity checking.

     istrip (-istrip)
                 Strip (do not strip) input characters to seven bits.

     inlcr (-inlcr)
                 Map (do not map) NL to CR on input.

     igncr (-igncr)
                 Ignore (do not ignore) CR on input.

     icrnl (-icrnl)
                 Map (do not map) CR to NL on input.

     ixon (-ixon)
                 Enable (disable) START/STOP output control.  Output from the
                 system is stopped when the system receives STOP and started
                 when the system receives START.

     ixoff (-ixoff)
                 Request that the system send (not send) START/STOP characters
                 when the input queue is nearly empty/full.

     opost (-opost)
                 Post-process output (do not post-process output; ignore all
                 other output modes).

     isig (-isig)
                 Enable (disable) the checking of characters against the
                 special control characters INTR, QUIT, and SUSP.

     icanon (-icanon)
                 Enable (disable) canonical input (ERASE and KILL processing).

     iexten (-iexten)
                 Enable (disable) any implementation defined special control
                 characters not currently controlled by icanon, isig, or ixon.

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

     echoe (-echoe)
                 The ERASE character shall (shall not) visually erase the last
                 character in the current line from the display, if possible.


     echok (-echok)
                 Echo (do not echo) NL after KILL character.

     echonl (-echonl)
                 Echo (do not echo) NL, even if echo is disabled.

     noflsh (-noflsh)
                 Disable (enable) flush after INTR, QUIT, SUSP.

     control-character string
                 Set control-character to 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 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.

                 Recognized control-characters:


                       control-     POSIX.1
                       character    Subscript    Description
                       _________    _________    _______________
                       eof          VEOF         EOF character
                       eol          VEOL         EOL character
                       erase        VERASE       ERASE character
                       intr         VINTR        INTR character
                       kill         VKILL        KILL character
                       quit         VQUIT        QUIT character
                       susp         VSUSP        SUSP character
                       start        VSTART       START character
                       stop         VSTOP        STOP character

     saved settings
                 Set the current terminal characteristics to the saved
                 settings produced by the -g option.

     min number

     time number
                 Set the value of min or time to number.  MIN and TIME are
                 used in Non-Canonical mode input processing (-icanon).

     evenp or parity
                 Enable parenb and cs7; disable parodd.

     oddp        Enable parenb, cs7, and parodd.

     -parity, -evenp, -oddp
                 Disable parenb, and set cs8.

                 Enable (disable) icrnl.  In addition -nl unsets inlcr and
                 igncr.

     ek          Reset ERASE and KILL characters back to system defaults.

     sane        Resets all modes to reasonable values for interactive
                 terminal use.

     tty         Set the line discipline to the standard terminal line
                 discipline TTYDISC.

     The stty utility exits with a value of 0 if successful, and >0 if an
     error occurs.

SEE ALSO
     stty(4)

STANDARDS
     The stty function is expected to be IEEE Std1003.2 (``POSIX'')
     compatible.

BSD Experimental                 June 27, 1991                               4



























































Typewritten Software • bear@typewritten.org • Edmonds, WA 98026