TPUT(1) UNIX Programmer's Manual TPUT(1) NNAAMMEE tput - terminal capability interface SSYYNNOOPPSSIISS ttppuutt [[ --TT tteerrmm ]] aattttrriibbuuttee DDEESSCCRRIIPPTTIIOONN _T_p_u_t makes terminal-dependent information available to users or shell applications. The options are as follows: -T The terminal name as specified in the _t_e_r_m_c_a_p database, for example, ``vt100'' or ``xterm''. If not specified, _t_p_u_t retrieves the ``TERM'' variable from the environ- ment. _T_p_u_t outputs a string if the _a_t_t_r_i_b_u_t_e is of type string; a number if it is of type integer. Otherwise, _t_p_u_t exits 0 if the terminal has the capability and 1 if it does not, without further action. The following special attributes are available: clear Clear the screen (the _t_e_r_m_c_a_p ``cl'' sequence). init Initialize the terminal (the _t_e_r_m_c_a_p ``is'' sequence). longname Print the descriptive name of the user's terminal type. reset Reset the terminal (the _t_e_r_m_c_a_p ``rs'' sequence). DDIIAAGGNNOOSSTTIICCSS The exit value of _t_p_u_t is based on the last attribute speci- fied. If the attribute is of type string or of type integer, _t_p_u_t exits 0 if the attribute is defined for this terminal type and 1 if it is not. If the attribute is of type boolean, _t_p_u_t exits 0 if the terminal has this attri- bute, and 1 if it does not. _T_p_u_t exits 2 if any error occurred. SSEEEE AALLSSOO termcap(3), termcap(5) BBUUGGSS _T_p_u_t can't really distinguish between different types of attributes. This is due to the limited interface in the current version of _t_e_r_m_c_a_p(3), and will be fixed in the near future. Printed 7/27/90 1Q 1