Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stty(1) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

att_stty(1)

berk_stty(1)

tabs(1)

ioctl(2)

termio(7)

tty(7)



     stty(1)                    DG/UX 4.30                     stty(1)



     NAME
          stty - set the options for a terminal

     SYNOPSIS
          stty [ att_stty_options ]

          or

          stty [ berk_stty_options ]

     DESCRIPTION
          stty sets certain terminal I/O options for a tty device;
          without arguments, it reports the settings of certain
          options.

          stty is actually an interface to two other commands:
          attstty(1) and berkstty(1).  DG/UX supports two terminal
          interface conventions (or line disciplines).  attstty(1)
          sets and displays terminals modes for the AT & T line
          discipline (number 0) while berkstty(1) sets and displays
          terminals modes for the Berkeley line discipline (number 1).

          A line discipline governs the manner in which terminal I/O
          is processed.  For example, the editing operations
          (backspace, line kill, etc.)  and echoing operations (no
          echo, echo erase, etc.)  are part of the line discipline.
          See termio(7) and tty(7) for line discipline programming
          information.

          The attstty command works only if you are in line
          discipline 0.  If not, it prints an error message.
          Likewise, the berkstty command works only if you are in
          line discipline 1.  The function of the stty command is to
          determine the line discipline and call either attstty or
          berkstty to process the arguments.  For example, if you are
          in line discipline 0, the command "stty echoe" is equivalent
          to the command "att_stty echoe".

          Determining the correct command to use is not
          straightforward because attstty uses the standard input for
          reading and setting tty modes while berkstty uses the
          standard output.  stty determines the command according to
          the following table:












     Licensed material--property of copyright holder(s)         Page 1





     stty(1)                    DG/UX 4.30                     stty(1)



                        _______________________________
                       |         |      stdout LD     |
                       | stdin LD| 0      1      other|
                       |_________|____________________|
                       | 0       | att    ?      att  |
                       | 1       | error  berk   error|
                       | other   | error  berk   error|
                       |_________|____________________|

          The "other" label refers to files which are not ttys.  The
          entry marked "?" is one where both attstty and berkstty
          could be valid.  This case occurs only where the input and
          output are redirected to different ttys.  This is handled as
          an error.

     SEE ALSO
          att_stty(1), berk_stty(1), tabs(1).
          ioctl(2) in the Programmer's Reference for the DG/UX System.
          termio(7) and tty(7) in the System Manager's Reference for
          the DG/UX System.



































     Licensed material--property of copyright holder(s)         Page 2



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