GETTYDEFS(5,F) AIX Technical Reference GETTYDEFS(5,F)
-------------------------------------------------------------------------------
gettydefs
PURPOSE
Describes speed and terminal settings used by the getty command.
DESCRIPTION
The /etc/gettydefs file contains information used by the getty command to set
up the speed and terminal settings for a line. Since /etc/gettydefs is a
symbolic link to <LOCAL>/gettydefs, the information contained therein is
specific to the individual cluster site. The /etc/gettydefs file supplies
information on what the login prompt should look like. It also supplies the
speed to try next if the user indicates that the current speed is not correct
by typing a <break> character.
Each entry in /etc/gettydefs has the following format:
" label# initial-flags # final-flags #login-prompt #next-label "
Each entry is followed by a blank line. Used within a line, the pound sign (#)
acts as a field separator. Lines that begin with # are ignored and may be used
to comment the file. The various fields can contain quoted characters of the
form \b, \n, \c, and so on, as well as \nnn, where nnn is the octal value of
the desired character. The various fields are:
label
This is the string against which getty tries to match its second argument.
It is often the speed, such as 1200, at which the terminal is supposed to
run, but it need not be (see the paragraph at the end of this list).
initial-flags
These flags are the initial ioctl system call settings to which the terminal
is to be set if a terminal type is not specified in the getty command. The
getty command understands the symbolic names (see "termio"). Normally, only
the speed flag is required in the initial-flags. The getty command
automatically sets the terminal to raw input mode and takes care of most of
the other flags. The initial-flag settings remain in effect until getty
executes login.
final-flags
These flags take the same values as the initial-flags and are set just
before getty executes login. The speed flag is again required. The
composite flag SANE takes care of most of the other flags that need to be
set so that the processor and terminal are communicating in a rational
fashion. The other two commonly specified final-flags are:
o TAB3 causes tabs to be sent to the terminal as spaces.
o HUPCLcauses the line to be hung up on the final close.
Processed November 7, 1990 GETTYDEFS(5,F) 1
GETTYDEFS(5,F) AIX Technical Reference GETTYDEFS(5,F)
login-prompt
This entire field is printed as the login-prompt. Unlike the previous
fields where blanks are ignored (a space, tab, or new-line), they are
included in the login-prompt field.
next-label
This indicates the next label of the entry in the table that getty should
use if the user types a <break> or the input cannot be read. Usually, a
series of speeds are linked together in this fashion, into a closed set.
For instance, 2400 linked to 1200, which in turn is linked to 300, which
finally is linked to 2400.
If getty is called without a second argument, the first entry of /etc/gettydefs
is used, thus making the first entry of /etc/gettydefs the default entry. This
first entry is also used if getty cannot find the specified label. If
/etc/gettydefs itself is missing, there is one entry built into the command
which will bring up a terminal at 300 baud.
It is strongly recommended that after making or modifying /etc/gettydefs, it be
run through getty with the check option to be sure there are no errors.
FILES
/etc/gettydefs A symbolic link to <LOCAL>/gettydefs
<LOCAL>/gettydefs
The actual gettydefs file
RELATED INFORMATION
In this book: "ioctlx, ioctl, gtty, stty" and "termio."
The getty and login commands in the AIX Operating System Commands Reference.
Processed November 7, 1990 GETTYDEFS(5,F) 2