[Top][All Lists]

[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="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.

Read the Bash FAQ, question E3.

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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