How to get number of columns in terminal

tput cols