Closed alexpw closed 10 years ago
Hello :-),
Is the TERM
variable exported? Something like:
export TERM
Hi Hywan, thanks. Right, I've definitely ensured TERM is exported while in a fresh terminal. It's bizarre.
$ echo $TERM;
xterm
cat ~/.bashrc
export PATH=/usr/local/bin/:~/bin:~/.composer/vendor/bin:$PATH
export CLICOLOR=1
export TERM=xterm
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export LSCOLORS=ExFxCxDxBxegedabagacad
export HISTCONTROL=erasedups HISTSIZE=10000
shopt -s histappend
source /usr/local/etc/bash_completion
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWSTASHSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
# 1. Term title + 2. prompt:
# 1.................
# 2..........................................................................................................
PS1='\[\033]0;\W\007\][\[\033[01;33m\]\u\[\033[31m\]:\[\033[01;34m\]\W$(__git_ps1 "\[\033[31m\]:\[\033[32m\]%s")\[\033[00m\]]\$ '
cat ~/.bash_profile
source ~/.bashrc
ulimit -n 2048
I tried commenting out most of the ~.bashrc and adding [ -z "$PS1" ] && return
to the top of ~/.bashrc, nothing helped.
The context for when this happens is within a forked child of a php app boris. But I don't receive this notice on my main laptop.
I can't reproduce this issue. However, your patch looks very legit, so I am going to apply it (with a few coding style modification).
Some news from https://github.com/alexpw/boris?
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.