Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: %F{1} outputs code twice, %F{red} doesn't
- X-seq: zsh-workers 27986
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: %F{1} outputs code twice, %F{red} doesn't
- Date: Tue, 1 Jun 2010 23:30:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=zQvFfi0Gwej7MdI64wUaGoiy9Vk7kKOClOSpzIdWYw8=; b=dSEOoUdq7l4EaQ2goza2+N95z/VHInwL+iA24Hxc8soYCeuEelDlzLNR4PpnbG3K8z 8XcAH8zUEOGC8CciIfIkod1Qd5VIQLti5MtaqfWh8T4gPfel80AzPBF+afHIKoqkD8x5 rMcCrcFsaNUns4sVdLgV7ReqpMg8KX4wZ5Ie4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fB87CaFMam+diWcgo/WIMZqycsYNjQFbBHafDn3UH1AVjz4OsIbXynaKCz/waohbrK FCkNE+fKOse8ONaUZVRLcG12ksy1BAxEU3ty585dOXbsZjGSgldMrymnbaTZmnQb0uOa VImjZq/UUDJl+fjhVn0/zghGB8zAroAHGjDiM=
- In-reply-to: <20100601220700.6e7be66e@pws-pc>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <AANLkTikHRAqO7fOkcv48f_k2iIIdKjynAO3ImmSSaYP6@xxxxxxxxxxxxxx> <20100601220700.6e7be66e@pws-pc>
On 1 June 2010 23:07, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> On Fri, 28 May 2010 00:26:49 +0200
> Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>> % print -P a%F{1}a|cat -v
>> a^[[38;5;1m^[[38;5;1ma
>> % echo ${(%V):-a%F{1}a}
>> a^[[38;5;1m^[[38;5;1ma
>>
>> (wasn't sure if those use the same code path)
>>
>> % print -P a%F{red}a|cat -v
>> a^[[38;5;1ma
>
> I'm not sure how you get it duplicated, but it does look to me like it's
> trying to do the same thing two ways, one with termcap, and one with
> ANSI sequences, or whatever you've told it to use instead via
> zle_highlight.
The trick is it only happens with "1", not with "red". The patch appears to
fix it.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author