


      GETTY(1)                    (UNIX 5.0)                   GETTY(1)



      NAME
           getty  - set terminal characteristics

      SYNTAX
           /etc/getty line [speed]
           /etc/getty -c file

      DESCRIPTION
           Getty is invoked by the User Monitor process during the
           system startup sequence.  (The sequence is Startup, User
           Monitor, Getty, Login, Shell.) Getty reads instructions from
           the file gettydefs(4) on the line speed; accepts a user
           login name and passes that name to the login(1) program.

           Line is a tty device name contained in /dev which will
           become the control terminal.

           /etc/gettydefs tells getty what speed to initially run at;
           what the login message should look like, and what the inital
           tty settings are.  /etc/gettydefs actually contains a list
           of specifications for getty to attempt, in order, until an
           appropriate specification is found.

           Normally, getty starts by reading the first line of
           gettydefs, then reads successive lines until the information
           on a particular line is found to specify the correct speed.
           Speed (optional) tells getty which line of the
           /etc/gettydefs file to start reading speed information from.

           By default, getty sets the speed of the interface to 9600
           baud; specifies that raw mode is to be used (awaken on every
           character), that echo is to be suppressed, either parity
           allowed, that the connection is local, that newline
           characters will be converted to "CR-LF", and that tab
           expansion will be performed on the standard output.

           Getty displays the contents of the file /etc/issue, if it
           exists, and the login prompt from the entry in
           /etc/gettydefs before reading the user's name a character at
           a time. If a null character (or framing error) is received,
           it is assumed to be the result of the user pushing the
           ``break'' key. This will cause getty to attempt the next
           speed entry in the /etc/gettydefs file.

           The user's name is terminated by a new-line or carriage-
           return character.  The "CR" results in the system being set
           to treat "CR's" appropriately (see termio(7)).

           The user's name is scanned to see if it contains any lower-
           case alphabetic characters; if not, and if the name is non-
           empty, the system is told to map any future upper-case
           characters into the corresponding lower-case characters.



      Page 1                                          (73 A2 02MT REV1)






      GETTY(1)                    (UNIX 5.0)                   GETTY(1)



           Finally, login is called with the user's name as an
           argument.  Additional arguments may be typed after the login
           name.  These are passed to login which will place them in
           the environment (see login(1)).

           -c file is a check option, in which getty scans file instead
           of /etc/gettydefs and prints a diagnosis on the standard
           output.  In this case, it prints the flag values for correct
           entries, and reports other improper constructions.  See
           termio(7) to interpret the values.  Note that some values
           are added to the flags automatically.












































      Page 2                                          (73 A2 02MT REV1)






      GETTY(1)                    (UNIX 5.0)                   GETTY(1)



      FILES
           /etc/gettydefs
           /etc/inittab
           /etc/issue

      SEE ALSO
           login(1), termio(7), gettydefs(4), inittab(4), issue(4),
           tty(7).















































      Page 3                                          (73 A2 02MT REV1)



