export TERM before use of tput