Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Help find Zsh' Bash `read -N1 -p "Put here " var
- X-seq: zsh-users 29182
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Help find Zsh' Bash `read -N1 -p "Put here " var
- Date: Tue, 22 Aug 2023 15:30:16 +0100 (BST)
- Archived-at: <https://zsh.org/users/29182>
- Importance: Normal
- In-reply-to: <CAH0GyZDRdX12F5-oFKgwOJD2wZ=UwPaoHXNezQa7Z4ukCGaqyw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAH0GyZB8iFL0yqbEVxEhe4qPN8hNPk9SxoPvd5X-_p_A+1nf7A@mail.gmail.com> <CAP+y1xDnTpgZFayVLTE0m2w7cehuPj1KNBVQ=UZGhhY6CZH=8w@mail.gmail.com> <CAH0GyZDRdX12F5-oFKgwOJD2wZ=UwPaoHXNezQa7Z4ukCGaqyw@mail.gmail.com>
> On 22/08/2023 15:19 Budi <budikusasi@xxxxxxxxx> wrote:
> the ... -p "Put here " var
> ?
read -k 1 REPLY'?Type a character: '
> On 8/22/23, Pier Paolo Grassi <pierpaolog@xxxxxxxxx> 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@xxxxxxxxx> ha
> > scritto:
> >
> >> What is the Zsh equivalent for Bash: read -N1 -p "Put here " var ?
> >>
> >> AI chat gave no solution
> >>
> >>
> >
Messages sorted by:
Reverse Date,
Date,
Thread,
Author