Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: various buggy behaviors in zsh out-of-the-box on Suse
- X-seq: zsh-users 11535
- From: Mats Ahlgren <mats_a@xxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: various buggy behaviors in zsh out-of-the-box on Suse
- Date: Wed, 6 Jun 2007 06:45:55 -0400
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <200706061040.l56Ae0AB012954@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1181087811.1134.ezmlm@xxxxxxxxxx> <200706060630.25841.mats_a@xxxxxxx> <200706061040.l56Ae0AB012954@xxxxxxxxxxxxxx>
- Reply-to: ahlgren@xxxxxxx
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