Manual Page Result
0
Command: gettydefs | Section: 4 | Source: Digital UNIX | File: gettydefs.4.gz
gettydefs(4) Kernel Interfaces Manual gettydefs(4)
NAME
gettydefs - Terminal attributes
SYNOPSIS
/etc/gettydefs
DESCRIPTION
The gettydefs file supplies the getty command with information about
various terminal attributes, such as the default initialization and the
login message. The gettydefs file contains single line entries that
are separated by blank lines. Each entry contains five fields; each
field is separated by a number sign (#). You can indicate comments in
the file by putting a number sign (#) at the beginning of a line.
When the getty command is invoked, it scans the gettydefs file for the
first entry with a matching identifier field (see below). If the get-
tydefs file cannot be opened, internal default settings are used. If
a match is found, then the matching entry is parsed, and the terminal
attributes are set based on the fields specified in the entry. If a
match is not found, the first gettydefs file entry is used; therefore
the first entry in gettydefs must be the default entry. The maximum
length of each entry is 255 characters.
The format of each entry is as follows:
Identifier#Iflag#Fflag#Message#Next Identifier
Identifies an entry. The getty command uses an identifier as an argu-
ment and searches for the first entry with a matching identifier field.
The identifier must be unique. Specifies the initial terminal flags
that the getty command uses to set the terminal attributes after a line
has been successfully opened. There are four categories for the termi-
nal attributes. The input flags control the basic input attributes.
The output flags control how the terminal system processes output. The
control flags describe how the hardware controls the terminal. The lo-
cal flags control various terminal functions. Refer to termios(4) for
the description of the possible settings on a terminal port. You can
specify the symbol SANE to select default settings. The default set-
tings set the input flags to BRKINT, IGNPAR, ICRNL and IXON; the output
flags to OPOST and ONLCR; the control flags to CS8, and CREAD; and the
local flags to ISIG, ICANON, IEXTEN, ECHO, ECHOK. Specifies the final
terminal flags used by the getty command. These flags are set after
the getty command receives a valid login name from the standard input.
The output flags and the control flags are set to the terminal attrib-
utes specified in Fflag. The input flags and local flags are appended
to the initial flags specified in the Iflag field. Specifies the login
message. The login message can include the character sequence %h to
obtain the host name and %t to obtain the terminal name. This field is
limited to 79 characters. Specifies that if the speed specified in the
current entry was incorrect, the entry corresponding to this field
should be used. The getty command obtains the new entry from this
field, and the scan process is repeated.
EXAMPLES
The following is an example of an entry in the gettydefs file contain-
ing settings for an 8 bit, no parity, 9600 baud, locally connected ter-
minal line: 9600# B9600 HUPCL CS8 CLOCAL # B9600 SANE IXANY TAB3 CLOCAL
#login: #9600 The following is an example of an entry in the gettydefs
file containing settings for a 8 bit, no parity, 2400 baud, dial in mo-
dem line: M2400# B2400 HUPCL CS8 # B2400 SANE IXANY TAB3 HUPCL #login:
#M1200
FILES
Specifies the command that initializes and controls terminal lines.
RELATED INFORMATION
Commands: getty(8)
Functions: kill(2) delim off
gettydefs(4)