tput#
Terminfo capability lookup (colors, cursor moves, sizes).
$ tput cols; tput lines
$ tput setaf 1; echo red; tput sgr0
$ tput civis
$ tput cnorm
Terminfo capability lookup (colors, cursor moves, sizes).
$ tput cols; tput lines
$ tput setaf 1; echo red; tput sgr0
$ tput civis
$ tput cnorm