|
|
1.1 root 1: .TH GETTY 8 "18 July 1983"
2: .UC 4
3: .SH NAME
4: getty \- set terminal mode
5: .SH SYNOPSIS
6: .B /etc/getty
7: [ type ]
8: .SH DESCRIPTION
9: .I Getty
10: is invoked by
11: .IR init (8)
12: immediately after a terminal is opened,
13: following the making of a connection.
14: While reading the name
15: .I getty
16: attempts to adapt the system to the speed and type of terminal
17: being used.
18: .PP
19: .I Init
20: calls
21: .I getty
22: with an argument specified by the
23: .I ttys
24: file entry for the terminal line.
25: The argument can be used to make
26: .I getty
27: treat the line specially.
28: This argument is used as an index into the
29: .IR gettytab (5)
30: database, to determine the characteristics of the line.
31: If there is no argument, or there is no such table, the
32: .B default
33: table is used.
34: If there is no
35: .B /etc/gettytab
36: a set of system defaults is used.
37: If indicated by the table located,
38: .I getty
39: will clear the terminal screen,
40: print a banner heading,
41: and prompt for a login name.
42: Usually either the banner of the login prompt will include
43: the system hostname.
44: Then the user's name is read, a character at a time.
45: If a null character is received, it is assumed to be the result
46: of the user pushing the `break' (`interrupt') key.
47: The speed is usually then
48: changed and the `login:' is typed again;
49: a second `break' changes the speed again and the `login:'
50: is typed once more.
51: Successive `break' characters cycle through the
52: some standard set of speeds.
53: .PP
54: The user's name is terminated by a new-line or
55: carriage-return character.
56: The latter results in the system being set to
57: treat carriage returns appropriately (see
58: .IR tty (4)).
59: .PP
60: The user's name is scanned to see if
61: it contains any lower-case alphabetic characters; if not,
62: and if the name is nonempty, the
63: system is told to map any future upper-case characters
64: into the corresponding lower-case characters.
65: .PP
66: Finally, login is called with the user's name as argument.
67: .PP
68: Most of the default actions of
69: .I getty
70: can be circumvented, or modified, by a suitable
71: .I gettytab
72: table.
73: .PP
74: .I Getty
75: can be set to timeout after some interval,
76: which will cause dial up lines to hang up
77: if the login name is not entered reasonably quickly.
78: .SH FILES
79: /etc/gettytab
80: .SH "SEE ALSO"
81: gettytab(5), init(8), login(1), ioctl(2), tty(4), ttys(5).
82: .SH BUGS
83: Currently, the format of
84: .B /etc/ttys
85: limits the permitted table names to a single character,
86: this should be expanded.
87: .PP
88: .B /etc/ttys
89: should be replaced completely.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.