tput warns you when running with no attached terminal; eg. GitHub CI. Redirects warnings to /dev/null