tput queries the terminfo database for terminal-dependent information.
From tput on Wikipedia:
In computing, tput is a standard Unix operating system command which makes use of terminal capabilities.
Depending on the system, tput uses the terminfo or termcap database, as well as looking into ...