tput only if it is a tty