zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: %F{1} outputs code twice, %F{red} doesn't
Date: Tue, 1 Jun 2010 23:30:58 +0200	[thread overview]
Message-ID: <AANLkTimGksS1d1lxgvOkB0j0kLfr2QW2Cluj1To1rHFC@mail.gmail.com> (raw)
In-Reply-To: <20100601220700.6e7be66e@pws-pc>

On 1 June 2010 23:07, Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:
> On Fri, 28 May 2010 00:26:49 +0200
> Mikael Magnusson <mikachu@gmail.com> 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


      reply	other threads:[~2010-06-01 21:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-27 22:26 Mikael Magnusson
2010-06-01 21:07 ` Peter Stephenson
2010-06-01 21:30   ` Mikael Magnusson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimGksS1d1lxgvOkB0j0kLfr2QW2Cluj1To1rHFC@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).