Bell 32V development
[unix-history] / usr / man / man8 / getty.8
CommitLineData
6abb708f
TL
1.TH GETTY 8
2.SH NAME
3getty \- set terminal mode
4.SH SYNOPSIS
5.B /etc/getty
6[ char ]
7.SH DESCRIPTION
8.I Getty
9is invoked by
10.IR init (8)
11immediately after a terminal is opened,
12following the making of a connection.
13While reading the name
14.I getty
15attempts to adapt the system to the speed and type of terminal
16being used.
17.PP
18.I Init
19calls
20.I getty
21with an argument specified by the
22.I ttys
23file entry for the terminal line.
24Arguments other than `0' can be used to make
25.I getty
26treat the line specially.
27Normally, it
28sets the speed of the interface to 300 baud,
29specifies that raw mode is to be used (break on every character),
30that echo is to be suppressed, and either parity
31allowed.
32It types the `login:' message,
33which includes the characters which put the Terminet 300
34terminal into full-duplex and
35return the GSI terminal to non-graphic mode.
36Then the user's name is read, a character at a time.
37If a null character is received, it is assumed to be the result
38of the user pushing the `break' (`interrupt') key.
39The speed is then
40changed to 1200 baud and the `login:' is typed again;
41a second `break' changes the speed to 150 baud and the `login:'
42is typed again. Successive `break' characters cycle through the
43speeds 300, 1200, and 150 baud.
44.PP
45The user's name is terminated by a new-line or
46carriage-return character.
47The latter results in the system being set to
48treat carriage returns appropriately (see
49.IR stty (2)).
50.PP
51The user's name is scanned to see if
52it contains any lower-case alphabetic characters; if not,
53and if the name is nonempty, the
54system is told to map any future upper-case characters
55into the corresponding lower-case characters.
56.PP
57Finally, login is called with the user's name as argument.
58.SH "SEE ALSO"
59init(8), login(1), stty(2), ttys(5)
60.SH BUGS