gettydefs - Terminal attributes
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 gettydefs 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:
Identifies an entry. The getty command uses an identifier as an argument 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 terminal 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 local 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 settings 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 attributes 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.
The following is an example of an entry in the gettydefs file containing settings for an 8 bit, no parity, 9600 baud, locally connected terminal 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 modem line: M2400# B2400 HUPCL CS8 # B2400 SANE IXANY TAB3 HUPCL #login: #M1200
Specifies the command that initializes and controls terminal lines.
Functions: kill(2) delim off