SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Other mgetty-1.1.9-5tx.i386.rpm

mgettydefs

Section: mgetty_sendfax manual (4)
Updated: 4 Dec 93
Index 

NAME

mgettydefs - speed and terminal settings used by mgetty 

DESCRIPTION

The/etc/gettydefsfile contains information used bymgetty(1)to set up the speed and terminal settings for a line.It also supplies information on what theloginprompt should look like.

Many versions of UNIX have a versionofgetty(1)that also reads /etc/gettydefs.Bothmgettyandgettyexpect similar formats in/etc/gettydefsexcept that, when used bymgetty,extended functionality is available.Even so, the additional functions are simply ignored bystandardgetty,so they can co-exist using the same file.Note, however, thatmgettycan be compiled to use a file different from/etc/gettydefs if yourgettygets upset about the extensions.This manual page documents/etc/gettydefsand describes the extended functionality available when used bymgetty(1).This document will refer togetty(1)except wheremgetty'sbehaviour is different.

Each entry in/etc/gettydefshas the following format:

label# initial-flags # final-flags # login-prompt #next-label

Each entry is followed by a blank line.The login prompt field can contain quoted characters whichwill be converted to other values.The sequences and their substitutions are:

\n
newline
\r
carriage return
\g
beep
\b
backspace
\v
vertical tab (VT)
\f
formfeed
\t
tab
\L
portname
\C
time inctime(3)format.
\N
number of users currently logged in
\U
number of users currently logged in
\D
date in DD/MM format
\T
time in hh:mm:ss format
\I
modem CONNECT attributes
\sequence
where "sequence" is a valid strtol format, such as:\0nnn (octal),\0xnnn (hex),or\nnn (decimal).

Note that standardgettyusually only supports \b, \r and \n.

The various fields are:

label
This is the string against whichgettytries to match its second argument.It is often the speed, such as1200,at which the terminal is supposed to run, but it need not be (see below).
initial-flags
These flags are the initialioctl(2)settings to which the terminal is to be set ifa terminal type is not specified togetty.The flags thatgettyunderstands are the ones listed intermio(7)).mgettyis usually compiled fortermios(7)and often has a more complete set thangetty.
Normally only the speed flag is required in the
initial-flags.gettyautomatically sets the terminal to raw input mode andtakes care of the other flags.If the "-s" option is used withmgetty(1)the speed setting is ignored.Theinitial-flagsettings remain in effect untilgettyexecuteslogin(1).
final-flags
These flags take the same values as theinitial-flagsand are set just beforegettyexecuteslogin.The speed flag is again required, except withmgettyif the -s flag was supplied.Two other commonly specifiedfinal-flagsareTAB3,so that tabs are sent to the terminal as spaces, andHUPCL,so that the line is hung up on the final close.
login-prompt
This entire field is printed as thelogin-prompt.Unlike the above fields where white space (a space, tab or new-line)is ignored,they are included in thelogin-promptfield.This field is ignored if the "-p" option has beenspecified tomgetty(1).
next-label
specifies the label to use if the useruser types a<break>character,orgettydetects a reception error.Gettysearches for the entry withnext-labelas itslabelfield 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,2400linked to1200,which in turn is linked to300,which finally is linked to2400.next-labelis ignored withmgetty(1).

Several additional composite settings are available forinitial-flagsandfinal-flags.The following composite flags are supported bymgettyand are usually supported bygetty:

SANE
equivalent to ``stty sane''.(BRKINT, IGNPAR, ISTRIP, ICRNL, IXON, OPOST, CS8, CREAD, ISIG, ICANON,ECHO, ECHOK)
ODDP
Odd parity(CS7, PARENB, PARODD)
PARITY,EVENP
even parity(CS7, PARENB)
-ODDP,-PARITY,-EVENP
no parity(resets PARENB, PARODD, and sets CS8)
RAW
raw I/O (no canonical processing)(turns off OPOST, ICANON)
-RAW,COOKED
enable canonical processing(turns on OPOST, ICANON)
NL
Ignore newlines.(ICRNL, ONLCR)
-NL
Respect newlines (turns INLCR, IGNCR, ICRNL, ONLCR, OCRNL, ONLREToff)
LCASE
Ignore case - treat all as lowercase.(IUCLC, OLCUC, XCASE)Is set if mgetty believes login is entirely uppercase.
-LCASE
Repect case (turns off IUCLC, OLCUC and XCASE)
TABS
output tabs as tabs
-TABS,TAB3
output tabs as spaces
EK
Sets VERASE to "#" and VKILL to CKILL respectively.(note that while many gettys default VERASE to "#".mgettydefaults VERASE to backspace.)

Additionally,mgetty(but notgetty)can set any of the control characters listed in thec_cctermio(termios)structure by the use of two tokens:

<character name> <value>

Eg:

VERASE ^h

The value can be set as ``^<character>'', ``\nnn'' or``\<character>'' (normal UNIX \ escapes).

See the termio(7)ortermios(7)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'thave any effect.

Ifgettyis called without a second argument, the first entry of/etc/gettydefsis used bygetty,thus making the first entry of/etc/gettydefsthe default entry.It is also used ifgettycannot find the specifiedlabel.Mgettyuse a default label of ``n'', but this can be changed in theconfiguration.If/etc/gettydefsitself is missing, there is one entry built intothe command which brings up a terminal at300(configuration parameter inmgetty)baud.

It is strongly recommended that after making or modifying/etc/gettydefs,it be run throughgettywith the check option to be sure there are no errors. 

EXAMPLES

The following two lines show an example of 300/1200 baud toggle, which isuseful for dial-up ports:
1200# B1200 HUPCL # B1200 SANE IXANY TAB3 #login: #300
300# B300 HUPCL # B300 SANE IXANY TAB3 #login: #1200

The following line shows a typical 9600 baud entry for a hard-wired connection(not currently supported formgetty):

9600# B9600 # B9600 SANE IXANY IXANY ECHOE TAB3 #login: #9600

The following line is a typical smart-modem setup, suitableformgetty:

19200mg#    B19200 #    B19200 SANE VERASE \b VINTR \003 HUPCL #    \n\D \T \N Users @!login: #19200mg
 

FILES

/etc/gettydefs 

SEE ALSO

mgetty(8),getty(8),login(1),ioctl(2),termio(7),termios(7).


 

Index

NAME
DESCRIPTION
EXAMPLES
FILES
SEE ALSO

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector