getty.1m (2010 09)

g
getty(1M) getty(1M)
If the respawn action is defined for the device file in
/etc/inittab, init reruns the
getty command, and the process resumes at step 1 (see inittab (4)).
Special Control Characters
The
getty program uses special control characters to manage text input and to switch line speeds.
The default special control characters are shown in the following table.
Table 1: Default Special Control Characters
May Be Character, or ASCII Value
Name Quoted (ASCII Name; Key Names) Action
eof Yes ^D (EOT) Terminate getty
erase Yes # Erase previous character
intr No 127 (DEL; Delete) Erase entire input line
kill Yes @ Erase entire input line
quit No ^\ (FS) Terminate getty
break No \0 (NUL or framing error) Switch to next entry
lineend No ^J (NL; newline) Terminate input line
lineend No ^M (CR; carriage return) Terminate input line
quote Yes \ Quote next character
Changing Control Character Values
You can set different values for eof, erase, intr,
kill, quit, and some other terminal parameters by
modifying the
/dev/ttyconf file. A superuser may view and modify /dev/ttyconf with the stty
command. See stty (1) for details.
To use the values in
/dev/ttyconf, specify the -f option on the getty
command line.
Quoting
getty understands the single character quoting convention using the backslash (\) quote. This allows
you to include whitespace, some of the special control characters, and some of the general control charac-
ters, in the input line as ordinary text. You cannot quote the current values of the special control charac-
ter names that are marked "No" in the May Be Quoted column. The single and double quotation marks
( and ") have no special meaning (unless they are assigned in /dev/ttyconf).
DEPENDENCIES
HP2334 MultiMux
The modem control parameter
MRTS must be present in the /etc/gettydefs
file when using getty
in conjunction with an HP2334 or HP2335 MultiMux to ensure that the RTS modem control signal is
asserted correctly.
Example:
9600 # B9600 HUPCL PARENB
MRTS
# B9600 SANE PARENB ISTRIP IXANY
#login: #19200
MRTS is not intended for use with devices other than the HP2334 or HP2335 MultiMux.
FILES
/dev/ttyconf
/etc/gettydefs
/etc/issue
SEE ALSO
ct(1), login(1), stty(1), init(1M), ioctl(2), gettydefs(4), inittab(4), modem(7), termio(7).
HP-UX 11i Version 3: September 2010 3 Hewlett-Packard Company 3