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 11534
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: various buggy behaviors in zsh out-of-the-box on Suse
- Date: Wed, 06 Jun 2007 11:40:00 +0100
- In-reply-to: <200706060630.25841.mats_a@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1181087811.1134.ezmlm@xxxxxxxxxx> <200706052013.44512.mats_a@xxxxxxx> <200706060901.l5691Kcg012120@xxxxxxxxxxxxxx> <200706060630.25841.mats_a@xxxxxxx>
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"
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
Messages sorted by:
Reverse Date,
Date,
Thread,
Author