stty, gtty \- set and retrieve terminal modes
stores in the structure pointed to by
status information about the terminal
whose file descriptor is in r0 (in the first argument).
delays until the terminal is quiescent,
then sets its status to agree with the structure
The input and output speeds are set from the first two bytes
Both system calls use the structure
fields describe the input and output speeds of the
device according to the following table,
which corresponds to the DH-11 interface.
If DC-11, DL-11 or KL-11 interfaces are used,
impossible speed changes are ignored.
Symbolic values in the table are as defined in
In the current configuration,
only 110, 150, 300 and 1200 baud are really supported on dial-up lines.
Code conversion and line control required for
must be implemented by the user's
The half-duplex line discipline
required for the 202 dataset (1200 baud)
is not supplied; full-duplex 212 datasets work fine.
fields of the argument structure
specify the erase and kill characters respectively.
field of the argument structure
contains several bits which determine the
system's treatment of the terminal:
.ta \w'ALLDELAY 'u +\w'0100000 'u
ALLDELAY 0177400 Delay algorithm selection
BSDELAY 0100000 Select backspace delays:
VTDELAY 0040000 Select form-feed and vertical-tab delays:
CRDELAY 0030000 Select carriage-return delays:
TBDELAY 0006000 Select tab delays:
NLDELAY 0001400 Select new-line delays:
EVENP 0000200 Even parity allowed on input (e. g. for M37s)
ODDP 0000100 Odd parity allowed on input
RAW 0000040 Raw mode: wake up on all characters
CRMOD 0000020 Map CR into LF; echo LF or CR as CR-LF
ECHO 0000010 Echo (full duplex)
LCASE 0000004 Map upper case to lower on input (e. g. M33)
CBREAK 0000002 Return each character as soon as it is tped
HUPCL 0000001 Hang up (remove `data terminal ready') on last close
The delay bits specify how long
transmission stops to allow for mechanical or other movement
when certain characters are sent to the terminal.
In all cases a value of 0 indicates no delay.
Backspace delays are currently ignored but will
be used for Terminet 300's.
If a form-feed/vertical tab delay is specified,
it lasts for about 2 seconds.
Carriage-return delay type 1 lasts about .08 seconds
and is suitable for the Terminet 300.
Delay type 2 lasts about .16 seconds and is suitable
for the VT05 and the TI 700.
Delay type 3 is suitable for the Concept 100.
New-line delay type 1 is dependent on the current column
and is tuned for Teletype model 37's.
Type 2 is useful for the VT05 and is about .10 seconds.
Type 3 is unimplemented and is 0.
Tab delay type 1 is dependent on the amount of movement
and is tuned to the Teletype model
Other types are unimplemented and are 0.
Characters with the wrong parity, as determined by bits 200 and
In raw mode, every character is passed immediately
to the program without waiting until a full line has been typed.
No erase or kill processing is done;
the end-of-file character (EOT), the interrupt character
(DEL) and the quit character (FS) are not treated specially.
Mode 020 causes input carriage returns to be turned into
input of either CR or LF causes LF-CR both to
(used for GE TermiNet 300's and other terminals without the newline function).
causes the line to be disconnected
when the last process with the line open closes it or terminates.
It is useful when a port is to be used for some special
for example, if it is associated
with an ACU used to place outgoing calls.
This system call is also used with certain special
files other than terminals,
but since none of them are part of the standard system
the specifications will not be given.
stty(1), tty(4), ioctl(2)
Zero is returned if the call was successful;
\-1 if the file descriptor does not refer to a terminal.