tput is error-prone and may not be needed, since all the formatting codes used are standard across all types of terminals.