fix tput notice for certain setups (unknown cause)

I've got a fairly fresh macbook so the setup isn't worn in, but was using it to test code.

I encountered the dreaded "tput: No value for $TERM and no -T specified", despite $TERM and $_SERVER['TERM'] both existing.

After a long time searching, I found this to work best.