bug-bash
[Top][All Lists]
Advanced

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

Re: wrong PS1 var width calculation


From: Chet Ramey
Subject: Re: wrong PS1 var width calculation
Date: Mon, 08 Dec 2008 22:40:57 -0500
User-agent: Thunderbird 2.0.0.18 (Macintosh/20081105)

Cheng Renquan wrote:
> On Sun, Dec 7, 2008 at 8:33 AM, Chet Ramey <chet.ramey@case.edu> wrote:
>> crquan@gmail.com wrote:
>>
>>> Bash Version: 3.2
>>> Patch Level: 39
>>> Release Status: release
>>>
>>> Description:
>>>       I have set PS1 var to this:
>>>       PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \[\e[1;33;40m\]$? 
>>> \$\[\033[00m\] '
>>>       according to bash manual, if I use character like \e[1;33;40m similar 
>>> that
>>>       doesn't occupy the width, use \[ and \] sequence to close them,
>>>
>>>       But unfourtunately, that seems not work.
>> Can you give an example of what doesn't work?  It seemed OK for the basic
>> stuff I tried on bash-3.2.48.
> 
> I need a screen record software to demo this bug, like this in a 80
> character width terminal,

Investigate patch 44.  It should fix this.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

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]