Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: various buggy behaviors in zsh out-of-the-box on Suse



Thanks very much; works like a charm!

On Wednesday 06 June 2007 06:40:00 Peter Stephenson wrote:
> Mats Ahlgren wrote:
> > # Prompt
> > PS1="
> > $bg[black]$fg[blue]%B%#%b $fg[white]%B"
> >
> >  Apparently using the variables $bg[...] and $fg[...], etc., seems to
> >  be causing this bug. Might you or anyone have any insight as to why?
> 
> You need to tell the shell that the characters in those variables
> don't move the cursor:  it has no knowledge of terminal escapes so
> assumes every character moves the cursor one character to the right.
> Try:
> 
> PS1="
> %{$bg[black]$fg[blue]%}%B%#%b %{$fg[white]%}%B"
> 




Messages sorted by: Reverse Date, Date, Thread, Author