Research V7 development
[unix-history] / usr / man / man8 / getty.8
CommitLineData
aa26a18b
KT
1.TH GETTY 8
2.SH NAME
3getty \- set typewriter mode
4.SH SYNOPSIS
5.B /etc/getty
6[ char ]
7.SH DESCRIPTION
8.I Getty
9is invoked
10by
11.IR init (8)
12immediately after a typewriter is opened
13following a dial-up.
14It reads the user's login name and calls
15.IR login (1)
16with the name as argument.
17While reading the name
18.I getty
19attempts to adapt the system to the speed and type of terminal
20being used.
21.PP
22.I Init
23calls
24.I getty
25with a single character argument taken from
26the
27.IR ttys (5)
28file entry for the terminal line.
29This argument determines a sequence of line speeds through which
30.I getty
31cycles, and also the `login:' greeting message,
32which can contain character sequences to put various kinds of
33terminals in useful states.
34.PP
35The user's name is terminated by a new-line or
36carriage-return character.
37In the second case CRMOD mode is set
38(see
39.IR ioctl (2)).
40.PP
41The name is scanned to see if
42it contains any lower-case alphabetic characters; if not,
43and if the name is nonempty, the
44system is told to map any future upper-case characters
45into the corresponding lower-case characters.
46.PP
47If the terminal's `break' key is depressed,
48.I getty
49cycles to the next speed appropriate to the type of line
50and prints the greeting message again.
51.PP
52Finally, login is called with the user's name as argument.
53.PP
54The following arguments from the
55.I ttys
56file are understood.
57.TP
580
59Cycles through 300-1200-150-110 baud.
60Useful as a default for dialup lines accessed by a variety
61of terminals.
62.TP
63\-
64Intended for an on-line Teletype model 33, for example
65an operator's console.
66.TP
671
68Optimized for a 150-baud Teletype model 37.
69.TP
702
71Intended for an on-line 9600-baud terminal, for example
72the Textronix 4104.
73.TP
743
75Starts at 1200 baud, cycles to 300 and back.
76Useful with 212 datasets where most terminals
77run at 1200 speed.
78.TP
795
80Same as `3' but starts at 300.
81.TP
824
83Useful for on-line console DECwriter (LA36).
84.SH "SEE ALSO"
85init(8), login(1), ioctl(2), ttys(5)