bug-bash
[Top][All Lists]
Advanced

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

Re: Prompt - cursor position - command history display problem


From: Chet Ramey
Subject: Re: Prompt - cursor position - command history display problem
Date: Mon, 19 Oct 2009 22:03:21 -0400
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

Timothy James Erlenmeyer wrote:
> 
> Configuration Information [Automatically generated, do not
> change]:
> 
> Machine: x86_64
> 
> OS: linux-gnu
> 
> Compiler: gcc
> 
> Compilation
> CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu'
> -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown'
> -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' -DSHELL
> -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2
> 
> uname output: Linux
> cyclops4 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:47:07 EDT 2007 x86_64
> x86_64 x86_64 GNU/Linux
> 
> Machine Type: x86_64-unknown-linux-gnu
> 
> Bash
> Version: 4.0
> 
> Patch Level: 28
> 
> Release Status: release
> 
> Description:
> 
> With
> a color prompt, long directory names, and/or long command lines, scrolling
> through the command history often causes the cursor to be in the wrong
> position, the prompt to loose color and remnants of previous long commands
> to remain on the line with short commands.
> 
> Repeat-By:
> 
> * This line is
> placed in ~/.bashrc:
> 
> PS1='[e[31;2m]w$[e[0m] '

Thanks for the report.  My testing indicates that this has been fixed for
the next version of bash.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
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]