bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xterm escape sequence problem


From: Joseph Shraibman
Subject: xterm escape sequence problem
Date: Thu, 21 Feb 2002 02:39:26 -0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.2.18 (i686))

I have the following in my .bashrc:

 PS1="address@hidden \w] "
if [ $TERM = xterm ] 
then
# see http://www.linuxdoc.org/HOWTO/mini/Xterm-Title.html
export PS1="\033]2;address@hidden:address@hidden \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?

address@hidden ~] xterm -version
XFree86 3.3.3.1b(88b)


-- 
--
TuPari
Joseph Shraibman
jks(at)iname.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]