tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.2.18 (i686))
I have the following in my .bashrc:
PS1="[\u@\h \w] "
if [ $TERM = xterm ]
then
# see http://www.linuxdoc.org/HOWTO/mini/Xterm-Title.html
export PS1="\033]2;\u@\h:\w\007[\u@\h \w] "
fi
This displays the prompt as I expect it, but sometimes the prompt gets
mangled, for example when using the up arrow to browse through the
history or using backspace to edit the command I just typed. I'm not
sure what the problem is here. It is probably an xterm problem, but
I can't figure out what it is. Is the PS1 string output each time the
up arrow is typed? Does anyone else have examples of xterm escape
sequences that work?
[jks@d1 ~] xterm -version
XFree86 3.3.3.1b(88b)
--
--
TuPari
Joseph Shraibman
jks(at)iname.com