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: Sat, 06 Dec 2008 19:33:59 -0500
User-agent: Thunderbird 2.0.0.18 (Macintosh/20081105)

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 unfourtunalte, 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.

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]