Tput: No value for $ TERM and no -T specified in Sublime Text 3

When I build something in Sublime Text 3 (regardless of the language), I get the following lines at the beginning of any console output:

tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified 

I have no idea what ST3 settings are using or how to edit them. How can I get rid of this?

EDIT

Here is the contents of my ~/.bash_profile , which has been given comments, it may need some editing:

 # Prompt NRM=`tput sgr0` BLD=`tput bold` ITL=`tput sitm` UL=`tput smul` RED=`tput setaf 1` GRN=`tput setaf 2` BLU=`tput setaf 4` PS1='\n\r${BLD}\u${NRM}|${UL}\h${NRM} [${BLD}${BLU}\W${NRM}] \w \n>> ' # For Homebrew export PATH=/usr/local/bin:$PATH 
+7
bash sublimetext3
source share
1 answer

You must modify .bash_profile to check the interactive shell before processing any tput calls:

 if [[ $- == *i* ]] then # Prompt NRM=`tput sgr0` BLD=`tput bold` ITL=`tput sitm` UL=`tput smul` RED=`tput setaf 1` GRN=`tput setaf 2` BLU=`tput setaf 4` PS1='\n\r${BLD}\u${NRM}|${UL}\h${NRM} [${BLD}${BLU}\W${NRM}] \w \n>> ' fi 
+11
source share

All Articles