zsh-users
 help / color / mirror / code / Atom feed
From: Pier Paolo Grassi <pierpaolog@gmail.com>
To: Budi <budikusasi@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Help find Zsh' Bash `read -N1 -p "Put here " var
Date: Tue, 22 Aug 2023 14:44:26 +0200	[thread overview]
Message-ID: <CAP+y1xDnTpgZFayVLTE0m2w7cehuPj1KNBVQ=UZGhhY6CZH=8w@mail.gmail.com> (raw)
In-Reply-To: <CAH0GyZB8iFL0yqbEVxEhe4qPN8hNPk9SxoPvd5X-_p_A+1nf7A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

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
>
>

[-- Attachment #2: Type: text/html, Size: 1287 bytes --]

  reply	other threads:[~2023-08-22 12:46 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 [this message]
2023-08-22 14:19   ` Budi
2023-08-22 14:30     ` Peter Stephenson
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='CAP+y1xDnTpgZFayVLTE0m2w7cehuPj1KNBVQ=UZGhhY6CZH=8w@mail.gmail.com' \
    --to=pierpaolog@gmail.com \
    --cc=budikusasi@gmail.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).