|
|
1.1 root 1: .pa 1
2: .he '12/11/72''GETTY (VII)'
3: .tr |
4: .ti 0
5: .nf
6: NAME getty -- set typewriter mode and get user's name
7: .fi
8: .sp
9: .ti 0
10: SYNOPSIS /etc/getty
11: .sp
12: .ti 0
13: DESCRIPTION
14: .br
15: .in 8
16: getty_____
17: is invoked
18: by init (VII)
19: immediately after a typewriter is opened
20: following a dial-in.
21: The user's login name is read and the login(I) command
22: is called with this name as an argument.
23: While reading this name getty_____
24: attempts to adapt the system to the speed and type of terminal
25: being used.
26: .sp
27: getty_____ initially sets the speed of the interface to 150 baud,
28: specifies that raw mode is to be used (break on every character),
29: that echo is to be suppressed, and either parity
30: allowed.
31: It types the "login:" message
32: (which includes the characters which put the 37 Teletype
33: terminal into full-duplex and unlock its keyboard).
34: Then the user's name is read, a character at a time.
35: If a null character is received, it is assumed to be the result
36: of the user pushing the "break" ("interrupt") key.
37: The speed is then
38: changed to 300 baud and the "login:" is typed again,
39: this time with the appropriate
40: sequence which puts a GE TermiNet 300 into full-duplex.
41: This sequence is acceptable to other 300 baud terminals also.
42: If a subsequent null character is received,
43: the speed is changed again.
44: The general approach is to cycle through a set of speeds in
45: response to null characters caused by breaks.
46: The sequence at this installation is 150, 300, and 134.5 baud.
47: .sp
48: Detection of IBM|2741s is accomplished while the speed is
49: set to 150 baud.
50: The user sends a 2741 style "eot"
51: character by pushing the attention key or by typing return;
52: at 150 baud, this character looks like the ascii "~" (174988).
53: Upon receipt of the "eot", the system is set to operate 2741s
54: and a "login: " message is typed.
55:
56: The user's name is terminated by a new-line or
57: carriage-return character.
58: The latter results in the system being set to
59: to treat carriage returns appropriately (see stty(II)).
60:
61: The user's name is scanned to see if
62: it contains any lower-case alphabetic characters; if not,
63: and if the name is nonempty, the
64: system is told to map any future upper-case characters
65: into the corresponding lower-case characters.
66: Thus UNIX is usable from upper-case-only terminals.
67:
68: Finally, login is called with the user's name as argument.
69: .sp
70: .in 16
71: .ti 0
72: FILES --
73: .sp
74: .ti 0
75: SEE ALSO init(VII), login(I), stty(II)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.