


GETTYDEFS(4)                                         GETTYDEFS(4)


NNAAMMEE
       gettydefs - speed and tty settings used by getty

DDEESSCCRRIIPPTTIIOONN
       The  file  //eettcc//ggeettttyyddeeffss  contains  information  used  by
       _g_e_t_t_y(1m) to set up the speed and tty settings for a line.
       It  supplies  information  on what the _l_o_g_i_n_-_p_r_o_m_p_t should
       look like.  It also supplies the speed to try next if  the
       user  indicates the current speed is not correct by typing
       a _<_b_r_e_a_k_> character.

       Each entry in //eettcc//ggeettttyyddeeffss has the following :

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

       Each entry is followed by a blank line.  Lines that  begin
       with  ##  are  ignored and may be used to comment the file.
       The various fields can contain quoted  characters  of  the
       form  \\bb,  \\nn, \\cc, etc., as well as \\_n_n_n, where _n_n_n is the
       octal value of the desired character.  The various  fields
       are:

       _l_a_b_e_l           This  is  the  string  against which _g_e_t_t_y
                       tries to match its second argument. It  is
                       often  the  speed,  such as 11220000, at which
                       the terminal is supposed to  run,  but  it
                       needn't be (see below).

       _i_n_i_t_i_a_l_-_f_l_a_g_s   These  flags are the initial _i_o_c_t_l(2) set-
                       tings to which the terminal is to  be  set
                       if  a  terminal  type  is not specified to
                       _g_e_t_t_y.   _G_e_t_t_y  understands  the  symbolic
                       names  specified  in //uussrr//iinncclluuddee//tteerrmmiioo..hh
                       (see _t_e_r_m_i_o(7)).  Normally only the  speed
                       flag  is  required  in  the  _i_n_i_t_i_a_l_-_f_l_a_g_s
                       field.  _G_e_t_t_y automatically sets the  ter-
                       minal  to raw input mode and takes care of
                       most of the other flags.  The _i_n_i_t_i_a_l_-_f_l_a_g
                       settings remain in effect until _g_e_t_t_y exe-
                       cutes _l_o_g_i_n(1m).

       _f_i_n_a_l_-_f_l_a_g_s     These flags take the same  values  as  the
                       _i_n_i_t_i_a_l_-_f_l_a_g_s  and  are  set just prior to
                       _g_e_t_t_y executes ..  The speed flag is  again
                       required.   The  composite flag SSAANNEE takes
                       care of most of the other flags that  need
                       to be set so that the processor and termi-
                       nal are communicating in a rational  fash-
                       ion.   The  other  two  commonly specified
                       _f_i_n_a_l_-_f_l_a_g_s are TTAABB33,  so  that  tabs  are
                       sent to the terminal as spaces, and HHUUPPCCLL,
                       so that the line is hung up on  the  final
                       close.




                                                                1





GETTYDEFS(4)                                         GETTYDEFS(4)


       _l_o_g_i_n_-_p_r_o_m_p_t    This entire field is printed as the _l_o_g_i_n_-
                       _p_r_o_m_p_t.  Unlike  the  above  fields  where
                       white  space  is  ignored (a space, tab or
                       new-line), they are included in the _l_o_g_i_n_-
                       _p_r_o_m_p_t field.

                       The _l_o_g_i_n_-_p_r_o_m_p_t may contain various @@_c_h_a_r
                       and \\_c_h_a_r parameters.  These are described
                       in  full  in  the _g_e_t_t_y(1m) section PROMPT
                       SUBSTITUTIONS.

       _n_e_x_t_-_l_a_b_e_l      This indicates the next _l_a_b_e_l of the entry
                       in  the table that _g_e_t_t_y should use if the
                       user types a _<_b_r_e_a_k_> or the  input  cannot
                       be  read.  Usually, a series of speeds are
                       linked together in this  fashion,  into  a
                       closed  set.  For instance, 22440000 linked to
                       11220000, which in  turn  is  linked  to  330000,
                       which finally is linked back to 22440000.

       If  _g_e_t_t_y  is  called  without  a _s_p_e_e_d argument, then the
       first entry of //eettcc//ggeettttyyddeeffss is  used,  thus  making  the
       first  entry  of  //eettcc//ggeettttyyddeeffss  the default entry. It is
       also used if _g_e_t_t_y can't find  the  specified  _l_a_b_e_l_.   If
       //eettcc//ggeettttyyddeeffss itself is missing, there is one entry built
       into _g_e_t_t_y which will bring up a terminal at 9600 baud.

       It is strongly recommended that after making or  modifying
       //eettcc//ggeettttyyddeeffss,  it  be  run  through _g_e_t_t_y with the check
       (--cc) option to be sure there are no errors.

FFIILLEESS
       /etc/gettydefs

SSEEEE AALLSSOO
       login(1m), getty(1m), ioctl(2), termio(7)





















                                                                2


