stty(1)
_________________________________________________________________
stty Command
set the options for a terminal
_________________________________________________________________
SYNTAX
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:
_______________________________
stdout LD
stdin LD 0 1 other
_______________________________
0 att ? att
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
stty(1)
1 error berk error
other error berk error
_______________________________
| | |
The "other" label
| refers to
| files which are not|ttys. The entry
marked "?" is one
| where bot
|h attstty and berkstty could be
valid. This case
| occurs on
|ly where the input an
|d output are
redirected to dif
|ferent tty
|s. This is handled a
|s an error.
| | |
| | |
SEE ALSO | | |
| | |
att_stty(1), berk
|_stty(1),|tabs(1). |
ioctl(2) in the P
|rogrammer'
|s Reference for the D
|G/UX System.
termio(7) and tty
|(7) in the
| System Manager's Ref
|erence for the
DG/UX System. | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)