only do the tput calls when tput exists (in some systems, like cygwin, there's no tput)