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