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