zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: read -sq
Date: Sun, 21 Feb 2021 09:54:25 -0800	[thread overview]
Message-ID: <b50a8fcb-65d2-02c3-ab93-0ceb7a067fe0@eastlink.ca> (raw)
In-Reply-To: <CAH+w=7Y61xDwoONbL8c0EBMecck9oXavoOzBuDHDUu89d5bN1A@mail.gmail.com>

On 2021-02-21 9:31 a.m., Bart Schaefer wrote:
> Not really. As the doc for -q says, "Read only one character from the
> terminal", but the arrow keys actually send more than one character.
> In the case of down-arrow those are ESC, bracket, and B, so read
> consumes and discards the ESC and then whatever comes after it gets
> the bracket and the B.
Yeah, one keystroke is not the same as one character.  I wonder if you 
could
tell it to take whatever comes within an instant and treat that like one
character?  The ESC the braket and the B must come faster than anyone could
type, so clearly one keystroke, no?  Probably not worth the trouble I'll 
just
remind myself to hit the space for 'no'.




  reply	other threads:[~2021-02-21 17:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-21 16:41 Ray Andrews
2021-02-21 17:31 ` Bart Schaefer
2021-02-21 17:54   ` Ray Andrews [this message]
2021-02-21 21:00     ` Bart Schaefer
2021-02-21 21:58       ` Ray Andrews
2021-02-21 23:03         ` 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=b50a8fcb-65d2-02c3-ab93-0ceb7a067fe0@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@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).