bug-bash
[Top][All Lists]
Advanced

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

Re: Another bash-3.2 regression: coloured prompt confuses Ctrl+R.


From: Chet Ramey
Subject: Re: Another bash-3.2 regression: coloured prompt confuses Ctrl+R.
Date: Thu, 29 Mar 2007 10:56:44 -0400
User-agent: Thunderbird 1.5.0.10 (Macintosh/20070221)

Andreas Schwab wrote:
> Chet Ramey <chet.ramey@case.edu> writes:
> 
>> Volkov Peter wrote:
>>> Hello.
>>>
>>> The issue was reported at http://bugs.gentoo.org/156292 and is still
>>> reproducible in bash-3.2 patch level 10 and with redisplay-cursor-patch.
>>>
>>> To save you time steps to reproduce the problem:
>>> 1. Set PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
>>> 2. cd /usr/share
>>> 3. press <ctrl>+R, then press letter 'e' and press <Home> button.
>>>
>>> Cursor appears at the first position in the line (the most left column).
>> I can't reproduce this with bash-3.2.15 and Fedora Core 5 in a Parallels
>> VM, with the Home key bound to beginning-of-line.
> 
> Perfectly reproducible with bash 3.2.15 and TERM=xterm, see the attached
> typescript.  Note the bogus 20 ^H after the prompt is redrawn.

I have no doubt that the cursor location is somehow wrong on your system.
I simply cannot reproduce it on the systems I have available.  Redisplay
is maybe less efficient than perfect, but it produces the right results.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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