GNU bug report logs - #5255
23.1.90; Wrong prompt in term

Previous Next

Package: emacs;

Reported by: Fabian Ezequiel Gallina <galli.87 <at> gmail.com>

Date: Sun, 13 Dec 2009 00:05:04 UTC

Severity: normal

Merged with 5334

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Fabian Ezequiel Gallina <galli.87 <at> gmail.com>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: 5255 <at> debbugs.gnu.org
Subject: bug#5255: 23.1.90; Wrong prompt in term
Date: Mon, 28 Dec 2009 02:11:44 -0300
2009/12/22 Dan Nicolaescu <dann <at> ics.uci.edu>:
>
> 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


This bug report was last modified 15 years and 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.