tput é um comando do sistema operacional Unix que faz uso de capacidades do terminal. Dependendo do sistema, tput usa o terminfo ou termcap.
tput lines
tput cols
tput cup 6 9
Linhas=$(($(tput lines) / 2)); Colunas=$(($(tput cols) / 2)) ; tput cup $Linhas $Colunas
tput reset
tput bold
tput rev
tput smul
tput rmul
Obs.: O comando tput smso também sublinha e para desligar(voltar ao normal), usa-se o tput rmso
tput el
tput ed
Obs.: Os caracteres teclados aparecerão piscando tput blink
tput ech 1
Obs.: Há também os comandos tput cub N ; tput cuf N ; tput cub1 ; tput cuf1 ; tput ll ; tput cuu1
tput sc
tput rc
Obs.: Restaura o video ao normal
tput sgr0
exemplo1
tput setaf 1
tput setab 1
tput dim
tput clear
tput civis
Obs.: o tput cnorm deixa o cursor visível
tput bel
http://www.bashguru.com/2010/04/how-to-handle-cursor-movement-in-shell.html
https://www.ibm.com/developerworks/aix/library/au-learningtput/
http://www.gnu.org/software/termutils/manual/termutils-2.0/html_chapter/tput_1.html