zsh-workers
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Marlon Richert <marlon.richert@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [BUG?] $terminfo weirdness
Date: Tue, 11 May 2021 13:20:07 +0200	[thread overview]
Message-ID: <CAN=4vMrwaoDYvQjvjazCnCYv+VZX2_4EMfVT=BNPYgm9-1bb=w@mail.gmail.com> (raw)
In-Reply-To: <CAHLkEDsfa4wkVP+xGUhoQjDS630Q3e1_-VONMcaU7Wfnc6mv0g@mail.gmail.com>

On Tue, May 11, 2021 at 1:02 PM Marlon Richert <marlon.richert@gmail.com> wrote:
>
> % print -r -- ${(@kvq+)terminfo[(I)kLFT*]}
> kLFT $'\C-[[1;2D'
> % print -r -- ${(@kvq+)terminfo[(I)kLFT]}
> kLFT $'\C-[[1;2D'
> % print -r -- ${(@kvq+)terminfo[(I)kLFT5]}
>
> % print -r -- ${(@kvq+)terminfo[kLFT5]}
> $'\C-[[1;5D'
> %
>
> What's going on here?

I'm surprised that (kv) works with (I) in the first place. It looks
useful but is this documented somewhere?

  % typeset -A x=(a1 1 a2 2 b 3)
  % print -r -- ${x[(I)a*]}
  a1 a2
  % print -r -- ${(kv)x[(I)a*]}
  a1 1 a2 2

Roman.


  reply	other threads:[~2021-05-11 11:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-11 11:01 Marlon Richert
2021-05-11 11:20 ` Roman Perepelitsa [this message]
2021-05-11 12:21 ` Daniel Shahaf
2021-05-11 14:49   ` Bart Schaefer

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='CAN=4vMrwaoDYvQjvjazCnCYv+VZX2_4EMfVT=BNPYgm9-1bb=w@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=marlon.richert@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).