term_type (1) --- print user's terminal type 02/22/82 _U_s_a_g_e term_type [ -[no]se | -[no]vth | -[no]lcase ] _D_e_s_c_r_i_p_t_i_o_n 'Term_type' prints a mnemonic for the type of the current user's terminal on standard output when it is called with no arguments. The mnemonic is suitable for use with 'se', among other things. If one of the other options is given, 'term_type' prints a "1" or "0" to indicate whether or not the option is selected for the terminal. For instance, "term_type -se" prints "1" if the terminal is supported by 'se'. If no terminal type has been specified for the user's terminal, the call to 'gtattr' or 'gttype' in 'term_type' will request the terminal type from the user. Otherwise, 'term_type' will use the remembered terminal type. _E_x_a_m_p_l_e_s echo "Your terminal type: "[term_type] if [term_type -se] se [args] else ed [args] fi _F_i_l_e_s =termlist= for the terminal list. =ttypes= for the legal terminal type list. _M_e_s_s_a_g_e_s "Usage: term_type ..." for illegal arguments. "No terminal type information is available". For some reason no terminal type is configured for the line and the user has refused to supply a terminal type. _S_e_e _A_l_s_o line (1), term (1), se (1), gtattr (2), gttype (2) term_type (1) - 1 - term_type (1)