tput [options] capname [arguments]Print the value of the terminal capability capname (and its associated numeric or string arguments) from the terminfo database. capname is a terminfo capability such as clear or col. (See termcap & terminfo, which is listed in the Bibliography.) The last five options are mutually exclusive and are not used when specifying a capname.
Exit statuses are:
When a Boolean capname is set to true or when a string capname is defined
When a Boolean is false or when a string is undefined
For usage errors
For unknown terminal type
For unknown capname
-TtypePrint the capabilities of terminal type (default is the terminal in use).
-SRead capname from standard input (this allows tput to evaluate more than one capname).
clearPrint the clear-screen sequence. Solaris only.
initPrint initialization strings and expand tabs.
resetPrint reset strings if present; act like init if not.
longnamePrint the terminal's long name.
Show the number of columns for the xterm terminal type:
tput -Txterm cols
Define shell variable restart to reset terminal characteristics:
restart=`tput reset`