Use tput cols instead of COLUMNS.