Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stty(1) — bsd — Apollo Domain/OS SR10.4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ioctl(2)

tabs(1)

tset(1)

tty(4)

STTY(1)                              BSD                               STTY(1)



NAME
     stty - set terminal options

SYNOPSIS
     stty [ option ... ]

DESCRIPTION
     stty sets certain I/O options on the current output terminal, placing its
     output on the diagnostic output.  With no argument, it reports the speed
     of the terminal and the settings of the options which are different from
     their defaults.  Use of one of the following options modifies the output
     as described:

OPTIONS
     all       All normally used option settings are reported.

     everything
               Everything stty knows about is printed.

     speed     The terminal speed alone is printed on the standard output.

     size      The terminal (window) sizes are printed on the standard output,
               first rows and then columns.

               The option strings are selected from the following set:

     even      Allow even parity input.
     -even     Disallow even parity input.
     odd       Allow odd parity input.
     -odd      Disallow odd parity input.
     raw       Raw mode input (no input processing (erase, kill, interrupt,
               ...); parity bit passed back).
     -raw      Negate raw mode.
     cooked    Same as -raw.
     cbreak    Make each character available to read(2) as received; no erase
               and kill processing, but all other processing (interrupt,
               suspend, ...) is performed.
     -cbreak   Make characters available to read Only when newline is
               received.
     -nl       Allow carriage return for newline, and output CR-LF for
               carriage return or newline.
     nl        Accept only newline to end lines.
     echo      Echo back every character typed.
     -echo     Do not echo characters.
     lcase     Map uppercase to lowercase.
     -lcase    Do not map case
     tandem    Enable flow control, so that the system sends out the stop
               character when its internal queue is in danger of overflowing
               on input, and sends the start character when it is ready to
               accept further input.
     -tandem   Disable flow control.
     -tabs     Replace tabs by spaces when printing.
     tabs      Preserve tabs.
     ek        Set erase and kill characters to # and @.

     For the following commands which take a character argument c, you may
     also specify c as the "u" or "undef", to set the value to be undefined.
     A value of "^x", a two character sequence, is also interpreted as a
     control character, with "^?" representing delete.

     erase c   Set erase character to c (default `#', but often reset to
               CTRL/H).
     kill c    Set kill character to c (default `@', but often reset to
               CTRL/U).
     intr c    Set interrupt character to c (default DEL or CTRL/? (delete),
               but often reset to CTRL/C).
     quit c    Set quit character to c (default CTRL/\).
     start c   Set start character to c (default CTRL/Q).
     stop c    Set stop character to c (default CTRL/S).
     eof c     Set end of file character to c (default CTRL/D).
     brk c     Set break character to c (default undefined).  This character
               is an additional character causing wakeup.
     cr0 cr1 cr2 cr3
               Select style of delay for carriage return (see ioctl(2)).
     nl0 nl1 nl2 nl3
               Select style of delay for linefeed.
     tab0 tab1 tab2 tab3
               Select style of delay for tab.
     ff0 ff1   Select style of delay for form feed.
     bs0 bs1   Select style of delay for backspace.

     tty33     Set all modes suitable for the Teletype Corporation Model 33
               terminal.
     tty37     Set all modes suitable for the Teletype Corporation Model 37
               terminal.
     vt05      Set all modes suitable for Digital Equipment Corp. VT05
               terminal.
     dec       Set all modes suitable for Digital Equipment Corp. operating
               systems users; (erase, kill, and interrupt characters to
               CTRL/?, CTRL/U, and CTRL/C, decctlq and "newcrt".)

     tn300     Set all modes suitable for a General Electric TermiNet 300.
     ti700     Set all modes suitable for Texas Instruments 700 series
               terminal.
     tek       Set all modes suitable for Tektronix 4014 terminal.
     0         Hang up phone line immediately.
     50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 exta extb
               Set terminal baud rate to the number given, if possible.
               (These are the speeds supported by the DH-11 interface.)

     rows n    The terminal size is recorded as having n rows.

     columns n The terminal size is recorded as having n columns.

     cols n    An alias for columns.

     A teletype driver that supports the job control processing of csh(1) and
     more functionality than the basic driver is described in tty(4).  The
     following options apply only to it.


     new       Use new driver (switching flushes typeahead).
     crt       Set options for a CRT (crtbs, ctlecho and, if >= 1200 baud,
               crterase and crtkill).
     crtbs     Echo backspaces on erase characters.
     prterase  For printing terminal echo erased characters backwards within
               "\" and "/".
     crterase  Wipe out erased characters with "backspace-space-backspace."
     -crterase Leave erased characters visible; just backspace.
     crtkill   Wipe out input on line kill, ala crterase.
     -crtkill  Just echo line kill character and a newline on line kill.
     ctlecho   Echo control characters as "^x" (and delete as "^?".)  Print
               two backspaces following the EOT character (CTRL/D).
     -ctlecho  Control characters echo as themselves; in cooked mode EOT
               (CTRL/D) is not echoed.

     decctlq   After output is suspended (normally by CTRL/S), only a start
               character (normally CTRL/Q) will restart it.  This is
               compatible with DEC's vendor supplied systems.

     -decctlq  After output is suspended, any character typed will restart it;
               the start character will restart output without providing any
               input.  (This is the default.)
     tostop    Background jobs stop if they attempt terminal output.
     -tostop   Output from background jobs to the terminal is allowed.
     tilde     Convert "~" to "`" on output (for Hazeltine terminals).
     -tilde    Leave poor "~" alone.
     flusho    Output is being discarded usually because user hit CTRL/O
               (internal state bit).
     -flusho   Output is not being discarded.
     pendin    Input is pending after a switch from cbreak to cooked and will
               be re-input when a read becomes pending or more input arrives
               (internal state bit).
     -pendin   Input is not pending.
     pass8     Passes all 8 bits through on input, in any mode.
     -pass8    Strips the 0200 bit on input except in raw mode.
     mdmbuf    Start/stop output on carrier transitions (not implemented).
     -mdmbuf   Return error if write attempted after carrier drops.
     litout    Send output characters without any processing.
     -litout   Do normal output processing, inserting delays, etc.



     nohang    Don't send hangup signal if carrier drops.
     -nohang   Send hangup signal to control process group when carrier drops.
     etxack    Diablo style etx/ack handshaking (not implemented).

     The following special characters are applicable only to the new teletype
     driver and are not normally changed.

     susp c    Set suspend process character to c (default CTRL/Z).
     dsusp c   Set delayed suspend process character to c (default CTRL/Y).
     rprnt c   Set reprint line character to c (default CTRL/R).
     flush c   Set flush output character to c (default CTRL/O).
     werase c  Set word erase character to c (default CTRL/W).
     lnext c   Set literal next character to c (default CTRL/V).

NOTES
     Setting tty characters via stty will not affect Display Manager key
     bindings.

SEE ALSO
     ioctl(2), tabs(1), tset(1), tty(4)

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