Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with color codes
- X-seq: zsh-users 13043
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- Subject: Re: Problem with color codes
- Date: Sat, 19 Jul 2008 01:26:34 +0200
- Cc: "Zsh users list" <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=zc6/vOLfLrQ3jVgy5v01xmTObjBeyVo//BpQhO+hhY0=; b=A2fEUx+t1XoB/jMl6Mmurgt9kcosHRuzXipKqldx5vp2e3IQ5iyj3EuSuFX0NoZd6X 5c1/bzH8P6RdNf1TmeKOhxt2mNBJQTJgFREOpmsY1NEGJsafp7Q5W1buu/11o9kKJi38 Fd5Lpm4B9PbpPt0TViv+CDFu0jhVkabRChLLQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=BggPl1fedWLR0493pJNIKshfh1UZ07geCdNfP45K/cgQeunF/Dir7ncMSkGEh6HOB4 hK/Sq2+ihsQmDKiyLgGUQ1v+uccwjpj8uUAhSWfAhTXAJjuggUUcE9SGADaVShQ4EdD7 h8GAb3KORyRyHbZrR8k6On81S5Ml29EtzsPJU=
- In-reply-to: <2d460de70807181612r2e648a3cnb0ba1f308d0ca594@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70807181612r2e648a3cnb0ba1f308d0ca594@xxxxxxxxxxxxxx>
2008/7/19 Richard Hartmann <richih.mailinglist@xxxxxxxxx>:
> Hi all,
>
> I switched from old, hardcoded color variables over to the colors function.
> For some reason, this confuses zsh when calculating the width of my
> prompt. It is worth nothing that RPS1 is also affected even though
>
> echo $((${COLUMNS} - 1))
>
> shows the correct width. I am attaching a screenshot with 7 kiB. I
> really do hope that is OK, if not, please feel free to cuss at me. My
> $PS1 and $RPS1 defintion files are attached, as well.
> ZSH 4.3.4 & 4.3.6 show the same behaviour, I could not find any
> other versions to test with.
do the colors variables have the %{%} sequences in them? Otherwise
you have to write those out explicitly.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author