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