

            ttyp$q (6) --- query for the terminal type from the user  03/25/82


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 integer function ttyp$q (ttype, blankok)
                 character ttype (MAXTERMTYPE)
                 integer blankok

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Ttyp$q'  asks the user for the name of his terminal.  If an
                 unknown terminal type is specified, the user  is  given  the
                 option of having the known terminal types listed by entering
                 either  a  "?"  or "help" or entering a valid terminal type.
                 If a valid terminal type was given by the user, the function
                 returns YES; otherwise, the function  return  value  is  NO.
                 For valid user responses, 'ttype' contains the terminal type
                 name.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 After a user response is entered, it is mapped to lower case
                 (for  consistency).   If  a  null response is entered and is
                 permitted by the caller (i.e., 'blankok' is YES),  then  all
                 terminal  type  information  in the Subsystem common area is
                 erased; otherwise, the terminal type entered  is  validated.
                 If it is a valid terminal type, the values of its attributes
                 are  set;  otherwise,  the  user is asked to enter a correct
                 response or a help request.


            _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d

                 ttype


            _C_a_l_l_s

                 ctoc, equal, input, mapstr, print, ttyp$l, ttyp$v


            _S_e_e _A_l_s_o

                 se (1), term (1), term_type (1), other ttyp$?* routines (6)












            ttyp$q (6)                    - 1 -                    ttyp$q (6)


