V1/man/man2/stty.2

Compare this file to the similar file:
Show the results in this format:

        11/3/71                                                  SYS STTY (II)


NAME                 stty -- set mode of typewriter

SYNOPSIS             (file descriptor in r0)
                     sys stty; arg / stty = 31.; not in assembler
              arg:   dcrsr; dcpsr; mode

DESCRIPTION          stty sets mode bits for a typewriter whose file descriptor is passed
                     in r0. First, the system delays until the typewriter is quiescent.
                     Then, the argument dcrsr is placed into the typewriter's reader
                     control and status register, and dcpsr is placed in the printer
                     control and status register. The DC--11 manual must be consulted for
                     the format of these words. For the purpose of this call, the most
                     important role of these arguments is to adjust to the speed of the
                     typewriter.

                     The mode arguments contains several bits which determine the system's
                     treatment of the typewriter:

                        200   even (M37 tty) parity allowed
                        100   odd (non--M37 tty) allowed
                        040   raw mode: wake up on all characters
                        020   map CR into LF; echo LF or CR as CR--LF
                        010   don't echo (half duplex)
                        004   map upper case to lower case on input (M33 TTY)

                     Characters with the wrong parity, as determined by bits 200 and 100,
                     are ignored.

                     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 new--lines;
                     input of either CR or LF causes CR--LF both to be echoed (used for GE
                     TermiNet 300's).

FILES

SEE ALSO             gtty

DIAGNOSTICS          The error bit (c--bit) is set if the file descriptor does not refer
                     to a typewriter.

BUGS                 This call should be used with care. It is all too easy to turn off
                     your typewriter.

OWNER                ken, dmr