tput cols tells you the number of columns
tput cols
tput lines tells you the number of rows
tput lines