Subject: bug#5255: 23.1.90; Wrong prompt in term

From: Fabian Ezequiel Gallina <[email-masked]>
Date: Mon, 28 Dec 2009 02:11:44 -0300

2009/12/22 Dan Nicolaescu <[email-masked]>:
>
> This is an xterm specific escape sequence, most likely due to a bad
> setup, you'll get the same problem if you use a vt100 terminal for
> example.
> So this is not a term.el problem.
>

Thanks for the explanation, I just added this to my .bashrc and
everything started to work fine again:

if [[ $TERM =~ ^xterm ]];
then
	TERM=xterm-256color
	PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
else
	PROMPT_COMMAND=""
fi

However what really surprises me is that emacs 23.1 didn't got the
prompt wrong with my old PROMPT_COMMAND.

Regards,
-- 
Fabián E. Gallina
http://www.from-the-cloud.com