4.4BSD/usr/share/man/cat1/tput.0

Compare this file to the similar file:
Show the results in this format:

TPUT(1)                      BSD Reference Manual                      TPUT(1)

NNAAMMEE
     ttppuutt - terminal capability interface

SSYYNNOOPPSSIISS
     ttppuutt [--TT _t_e_r_m] _a_t_t_r_i_b_u_t_e

DDEESSCCRRIIPPTTIIOONN
     TTppuutt makes terminal-dependent information available to users or shell ap-
     plications.  The options are as follows:

     --TT      The terminal name as specified in the termcap database, for exam-
             ple, ``vt100'' or ``xterm''.  If not specified, ttppuutt retrieves
             the ``TERM'' variable from the environment.

     TTppuutt 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, ttppuutt exits 0 if the terminal has the ca-
     pability and 1 if it does not, without further action.

     The following special attributes are available:

     _c_l_e_a_r         Clear the screen (the termcap ``cl'' sequence).

     _i_n_i_t          Initialize the terminal (the termcap ``is'' sequence).

     _l_o_n_g_n_a_m_e      Print the descriptive name of the user's terminal type.

     _r_e_s_e_t         Reset the terminal (the termcap ``rs'' sequence).

DDIIAAGGNNOOSSTTIICCSS
     The exit value of ttppuutt is based on the last attribute specified.  If the
     attribute is of type string or of type integer, ttppuutt exits 0 if the at-
     tribute is defined for this terminal type and 1 if it is not.  If the at-
     tribute is of type boolean, ttppuutt exits 0 if the terminal has this at-
     tribute, and 1 if it does not.  TTppuutt exits 2 if any error occurred.

SSEEEE AALLSSOO
     termcap(3),  termcap(5)

BBUUGGSS
     TTppuutt can't really distinguish between different types of attributes.
     This is due to the limited interface in the current version of
     termcap(3),  and will be fixed in the near future.

HHIISSTTOORRYY
     The ttppuutt command appears in 4.4BSD.

4.4BSD                           June 6, 1993                                1