[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xterm escape sequence problem
From: |
Chet Ramey |
Subject: |
Re: xterm escape sequence problem |
Date: |
Thu, 21 Feb 2002 08:53:47 -0500 |
> 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.
Read the Bash FAQ, question E3.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/