Интерактивная система просмотра системных руководств (man-ов)
>> mgettydefs (4) ( Linux man: Специальные файлы /dev/* )
mgettydefs - speed and terminal settings used by mgetty
file contains information used by
to set up the speed and terminal settings for a line.
It also supplies information on what the
prompt should look like.
Many versions of UNIX have a version
that also reads
expect similar formats in
except that, when used by
extended functionality is available.
Even so, the additional functions are simply ignored by
so they can co-exist using the same file.
Note, however, that
can be compiled to use a file different from
gets upset about the extensions.
This manual page documents
and describes the extended functionality available when used by
This document will refer to
behaviour is different.
Each entry in
has the following format:
where "sequence" is a valid strtol format, such as:
Note that standard
usually only supports \b, \r and \n.
The various fields are:
This is the string against which
tries to match its second argument.
It is often the speed, such as
at which the terminal is supposed to run, but it need not be (see below).
These flags are the initial
settings to which the terminal is to be set if
a terminal type is not specified to
The flags that
understands are the ones listed in
is usually compiled for
and often has a more complete set than
Normally only the speed flag is required in the
automatically sets the terminal to raw input mode and
takes care of the other flags.
If the "-s" option is used with
the speed setting is ignored.
settings remain in effect until
These flags take the same values as the
and are set just before
The speed flag is again required, except with
if the -s flag was supplied.
Two other commonly specified
so that tabs are sent to the terminal as spaces, and
so that the line is hung up on the final close.
This entire field is printed as the
Unlike the above fields where white space
(a space, tab or new-line)
they are included in the
This field is ignored if the "-p" option has been
specifies the label to use if the user
user types a
detects a reception error.
searches for the entry with
field and set up the terminal for those settings.
Usually, a series of speeds are linked together in this fashion,
into a closed set; for instance,
which in turn is linked to
which finally is linked to
is ignored with
Several additional composite settings are available for
The following composite flags are supported by
and are usually supported by
Ignore case - treat all as lowercase.
(IUCLC, OLCUC, XCASE)
Is set if mgetty believes login is entirely uppercase.
(turns off IUCLC, OLCUC and XCASE)
output tabs as tabs
output tabs as spaces
Sets VERASE to "#" and VKILL to CKILL respectively.
(note that while many gettys default VERASE to "#".
defaults VERASE to backspace.)
can set any of the control characters listed in the
structure by the use of two tokens:
<character name> <value>
The value can be set as ``^<character>'', ``\nnn'' or
``\<character>'' (normal UNIX \ escapes).
manual pages to a list of which ``V'' variables can be changed.
Note that many of these can be changed in the c_cc array, but won't
have any effect.
is called without a second argument, the first entry of
is used by
thus making the first entry of
the default entry.
It is also used if
cannot find the specified
use a default label of ``n'', but this can be changed in the
itself is missing, there is one entry built into
the command which brings up a terminal at
(configuration parameter in
It is strongly recommended that after making or modifying
it be run through
with the check option to be sure there are no errors.
The following two lines show an example of 300/1200 baud toggle, which is
useful for dial-up ports: