1getty(1M) System Administration Commands getty(1M)
2
3
4
6 getty - set terminal type, modes, speed, and line discipline
7
9 /usr/lib/saf/ttymon [-h] [-t timeout] line
10 [speed [type [linedisc]]]
11
12
13 /usr/lib/saf/ttymon -c file
14
15
17 getty sets terminal type, modes, speed, and line discipline. getty is a
18 symbolic link to /usr/lib/saf/ttymon. It is included for compatibility
19 with previous releases for the few applications that still call getty
20 directly.
21
22
23 getty can only be executed by the super-user, (a process with the user
24 ID root). Initially getty prints the login prompt, waits for the user's
25 login name, and then invokes the login command. getty attempts to adapt
26 the system to the terminal speed by using the options and arguments
27 specified on the command line.
28
29
30 Without optional arguments, getty specifies the following: The speed
31 of the interface is set to 300 baud, either parity is allowed, NEWLINE
32 characters are converted to carriage return-line feed, and tab expan‐
33 sion is performed on the standard output. getty types the login prompt
34 before reading the user's name a character at a time. If a null charac‐
35 ter (or framing error) is received, it is assumed to be the result of
36 the user pressing the BREAK key. This will cause getty to attempt the
37 next speed in the series. The series that getty tries is determined by
38 what it finds in /etc/ttydefs .
39
41 The following options are supported:
42
43 -h If the -h flag is not set, a hangup will be forced by
44 setting the speed to zero before setting the speed to the
45 default or a specified speed.
46
47
48 -t timeout Specifies that getty should exit if the open on the line
49 succeeds and no one types anything in timeout seconds.
50
51
52 -c file The -c option is no longer supported. Instead use
53 /usr/sbin/sttydefs -l to list the contents of the
54 /etc/ttydefs file and perform a validity check on the
55 file.
56
57
59 The following operands are supported:
60
61 line The name of a TTY line in /dev to which getty is
62 to attach itself. getty uses this string as the
63 name of a file in the /dev directory to open for
64 reading and writing.
65
66
67 speed The speed argument is a label to a speed and TTY
68 definition in the file /etc/ttydefs. This defini‐
69 tion tells getty at what speed to run initially,
70 what the initial TTY settings are, and what speed
71 to try next, (should the user press the BREAK key
72 to indicate that the speed is inappropriate). The
73 default speed is 300 baud.
74
75
76 type and linedisc These options are obsolete and will be ignored.
77
78
80 /etc/ttydefs
81
82
84 See attributes(5) for descriptions of the following attributes:
85
86
87
88
89 ┌─────────────────────────────┬─────────────────────────────┐
90 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
91 ├─────────────────────────────┼─────────────────────────────┤
92 │Availability │SUNWcsr │
93 └─────────────────────────────┴─────────────────────────────┘
94
96 ct(1C), login(1), sttydefs(1M), ttymon(1M), ioctl(2), attributes(5),
97 tty(7D)
98
99
100
101SunOS 5.11 14 Sep 1992 getty(1M)