zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Help find Zsh' Bash `read -N1 -p "Put here " var
Date: Tue, 22 Aug 2023 15:30:16 +0100 (BST)	[thread overview]
Message-ID: <1044308120.2702706.1692714616599@mail.virginmedia.com> (raw)
In-Reply-To: <CAH0GyZDRdX12F5-oFKgwOJD2wZ=UwPaoHXNezQa7Z4ukCGaqyw@mail.gmail.com>

> On 22/08/2023 15:19 Budi <budikusasi@gmail.com> wrote:
> the ... -p "Put here " var
> ?

read -k 1 REPLY'?Type a character: '

> On 8/22/23, Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
> > the manual offers:
> >
> >   -k [ num ]
> >                      Read only one (or num) characters.  All are assigned
> > to the first name, without word splitting.  This flag is ignored when -q is
> > present.  Input
> >                      is read from the terminal unless one of -u or -p is
> > present.  This option may also be used within zle widgets.
> >                      Note that despite the mnemonic `key' this option does
> > read full characters, which may consist of multiple bytes if the option
> > MULTIBYTE is set.
> >
> > Pier Paolo Grassi
> >
> >
> > Il giorno mar 22 ago 2023 alle ore 14:23 Budi <budikusasi@gmail.com> ha
> > scritto:
> >
> >> What is the Zsh equivalent for Bash: read -N1 -p "Put here " var ?
> >>
> >> AI chat gave no solution
> >>
> >>
> >


  reply	other threads:[~2023-08-22 14:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22 12:23 Budi
2023-08-22 12:44 ` Pier Paolo Grassi
2023-08-22 14:19   ` Budi
2023-08-22 14:30     ` Peter Stephenson [this message]
2023-08-22 15:21 ` zeurkous
2023-08-22 15:34   ` Ellenor Bjornsdottir
2023-08-22 15:39     ` zeurkous
2023-08-22 17:01     ` Andreas Kusalananda Kähäri
2023-08-22 17:42 ` Stephane Chazelas
2023-08-22 19:01   ` Bart Schaefer
2023-08-22 19:03   ` Stephane Chazelas

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=1044308120.2702706.1692714616599@mail.virginmedia.com \
    --to=p.w.stephenson@ntlworld.com \
    --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).