stty \*- set mode of typewriter
sets mode bits and character speeds for the typewriter whose file descriptor
is passed in r0 (resp. is the first argument to the call).
First, the system delays until the typewriter is quiescent.
Then the speed and general handling of the
input side of the typewriter is set from
the low byte of the first word of the
and the speed of the output side is set from the
high byte of the first word of the
The speeds are selected from the following table.
This table corresponds to the
speeds supported by the DH-11 interface.
The starred entries are those speeds actually supported
by the DC-11 interfaces actually present;
if a non-starred speed is selected, it will be ignored and
the present speed left unchanged.
In the current configuration,
only 150 and 300 baud are really supported,
in that the code conversion and line control required for
must be implemented by the user's
and the half-duplex line discipline
required for the 202 dataset (1200 baud)
is currently unused and is available for expansion.
contains several bits which determine the
system's treatment of the typewriter:
10000 no delays after tabs (e.g. TN 300)
200 even parity allowed on input (e. g. for M37s)
100 odd parity allowed on input
040 raw mode: wake up on all characters
020 map CR into LF; echo LF or CR as CR-LF
004 map upper case to lower on input (e. g. M33)
002 echo and print tabs as spaces
001 inhibit all function delays (e. g. CRTs)
Characters with the wrong parity, as determined by bits 200 and
In raw mode, every character is passed back immediately
to the program. No erase or kill processing is done;
the end-of-file character (EOT), the interrupt character
(DELETE) 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).
(c-bit) is set if the file descriptor does not refer to a type
\ 6writer.
From C, a negative value indicates an error.