Reference

gettytab(5)

terminal configuration database

NAME

gettytab – terminal configuration database

DESCRIPTION

The gettytab file is a simplified version of the termcap(5) database used to describe terminal lines. The initial terminal login process getty(8) accesses the gettytab file each time it starts, allowing simpler reconfiguration of terminal characteristics. Each entry in the database is used to describe one class of terminals.

There is a default terminal class, default, that is used to set global defaults for all other classes. (That is, the default entry is read, then the entry for the class required is used to override particular settings.)

CAPABILITIES

Refer to termcap(5) for a description of the file layout. The default column below lists defaults obtained if there is no entry in the table obtained, nor one in the special default table.

NameTypeDefaultDescription
abboolfalseAuto-baud speed select for the MICOM 600 port selector.
apboolfalseTerminal uses any parity.
bkstr0377Alternative end-of-line character (input break).
c0numunusedTTY control flags to write messages.
c1numunusedTTY control flags to read login name.
c2numunusedTTY control flags to leave terminal as.
ceboolfalseUse CRT erase algorithm.
ckboolfalseUse CRT kill algorithm.
clstrNULLScreen clear sequence.
coboolfalseConsole; add
dsstr‘^Y’Delayed suspend character.
dxboolfalseSet
ecboolfalseLeave echo OFF.
epboolfalseTerminal uses even parity.
erstr‘^?’Erase character.
etstr‘^D’End of text
evstrNULLInitial environment.
flstr‘^O’Output flush character.
hcboolfalseDo
hnstrhostnameHostname.
htboolfalseTerminal has real tabs.
i0numunusedTTY input flags to write messages.
i1numunusedTTY input flags to read login name.
i2numunusedTTY input flags to leave terminal as.
igboolfalseIgnore garbage characters in login name.
imstrNULLInitial (banner) message.
instr‘^C’Interrupt character.
isnumunusedInput speed.
klstr‘^U’Kill character.
l0numunusedTTY local flags to write messages.
l1numunusedTTY local flags to read login name.
l2numunusedTTY local flags to leave terminal as.
lcboolfalseTerminal has lower case.
lmstrlogin:Login prompt.
lnstr‘^V’``Literal next'' character.
lostr/usr/bin/loginProgram to execute when name obtained.
mbboolfalseDo flow control based on carrier.
nlboolfalseTerminal has (or might have) a newline character.
npboolfalseTerminal uses no parity (i.e., 8-bit characters).
nxstrdefaultNext table (for auto speed selection).
o0numunusedTTY output flags to write messages.
o1numunusedTTY output flags to read login name.
o2numunusedTTY output flags to leave terminal as.
opboolfalseTerminal uses odd parity.
osnumunusedOutput speed.
pcstr‘\0’Pad character.
peboolfalseUse printer (hard copy) erase algorithm.
pfnum0Delay
psboolfalseLine connected to a Develcon port selector.
qustr‘^\’Quit character.
rpstr‘^R’Line retype character.
rwboolfalseDo
spnumunusedLine speed (input and output).
sustr‘^Z’Suspend character.
tcstrnoneTable continuation.
tonum0Timeout (seconds).
ttstrNULLTerminal type (for environment).
ubboolfalseDo unbuffered output (of prompts etc).
ucboolfalseTerminal is known upper case only.
westr‘^W’Word erase character.
xcboolfalseDo
xfstr‘^S’XOFF
xnstr‘^Q’XON

The following capabilities are no longer supported by getty(8):

cbboolfalseUse CRT backspace mode.
f0numunusedTTY mode flags to write messages.
f1numunusedTTY mode flags to read login name.
f2numunusedTTY mode flags to leave terminal as.
hestrNULLHostname editing string.

The following delay capabilities are no longer supported by getty(8):

bdnum0Backspace delay.
cdnum0Carriage-return delay.
fdnum0Form-feed (vertical motion) delay.
ndnum0Newline (line-feed) delay.
tdnum0Tab delay.

If no line speed is specified, speed will not be altered from that which prevails when getty(8) is entered. Specifying an input or output speed will override line speed for stated direction only.

Terminal modes to be used for the output of the message and for input of the login name, and to leave the terminal set as upon completion, are derived from the boolean flags specified. If the derivation should prove inadequate, any (or all) of these three may be overridden with one of the c0, c1, c2, i0, i1, i2, l0, l1, l2, o0, o1, or o2 numeric specifications, which can be used to specify (usually in octal, with a leading ‘0’) the exact values of the flags. These flags correspond to the termios c_cflag, c_iflag, c_lflag, and c_oflag fields, respectively. Each of these sets must be completely specified to be effective.

Should getty(8) receive a null character (presumed to indicate a line break) it will restart using the table indicated by the nx entry. If there is none, it will re-use its original table.

The cl screen clear string may be preceded by a (decimal) number of milliseconds of delay required (a la termcap(5)). This delay is simulated by repeated use of the pad character pc.

The initial message and login message( im and lm) may include any of the following character sequences, which expand to information about the environment in which getty(8) is running:

%d

The current date.

%h

The hostname of the machine, which is normally obtained from the system using gethostname(3), but may also be overridden by the hn table entry.

%t

The TTY name.

%m, %r, %s, %v

The type of machine, release of the operating system, name of the operating system, and version of the kernel, respectively, as returned by uname(3).

%%

A ‘%’ character.

When getty(8) executes the login process given in the lo string (usually /usr/bin/login), it will have set the environment to include the terminal type, as indicated by the tt string (if it exists). The ev string can be used to enter additional data into the environment. It is a list of comma-separated strings, each of which will presumably be of the form name=value.

If a non-zero timeout is specified with to, then getty(8) will exit within the indicated number of seconds, either having received a login name and passed control to login(1), or having received an alarm signal and exited. This may be useful to hangup dial in lines.

Output from getty(8) is even parity unless op or np is specified. The op string may be specified with ap to allow any parity on input, but generate odd parity output. Note: this only applies while getty(8) is being run; terminal driver limitations prevent a more complete implementation. getty(8) does not check parity of input characters in RAW mode.

FILES

/etc/gettytab

Default location of the database file.

SEE ALSO

login(1), gethostname(3), uname(3), termcap(5), getty(8)

HISTORY

The gettytab file format appeared in 4.2BSD.

BUGS

The special characters (erase, kill, etc.) are reset to system defaults by login(1).

The termcap(5) format is horrid; something more rational should have been chosen.

History