only support tput colors if tty is present