[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xterm escape sequence problem
From: |
Joseph Shraibman |
Subject: |
Re: xterm escape sequence problem |
Date: |
Thu, 21 Feb 2002 22:24:54 -0000 |
User-agent: |
tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.2.18 (i686)) |
OK thanks for pointing that out.
Is there any way of outputing an escape sequence when running a program?
Chet Ramey <chet@nike.ins.cwru.edu> wrote:
>> 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/
--
--
TuPari
Joseph Shraibman
jks(at)iname.com