tput makes terminal-dependent information available to users or shell applications. The options are as follows:
-T
The terminal name as specified in the
terminfo(5) database, for example, “vt100” or “xterm”. If not specified,
tput retrieves the “
TERM” variable from the environment.
tput outputs a string if the
attribute is of type string; a number if it is of type integer. Otherwise,
tput exits 0 if the terminal has the capability and 1 if it does not, without further action.
If the
attribute is of type string, and takes arguments (e.g. cursor movement, the terminfo “cup” sequence) the arguments are taken from the command line immediately following the attribute.
The following special attributes are available:
init
Initialize the terminal (the
terminfo(5) “is2” sequence).
longname
Print the descriptive name of the user's terminal type.
reset
Reset the terminal (the
terminfo(5) “rs1, rs2, rs3” and “rf” sequence).