zsh-users
 help / color / mirror / code / Atom feed
From: Skye Poier <skye@isilon.com>
To: zsh-users@sunsite.dk
Subject: prompting
Date: Fri, 25 Jul 2003 17:17:34 -0700	[thread overview]
Message-ID: <20030726001734.GA93544@isilon.com> (raw)

Second zsh question..
What would be [a|the best] way to do a y/n prompt in a zsh function?
Single keypress would be best of course, but y<cr> is ok too

print -n "Are you sure you want to do that? [y/n] "
then??

Thanks!
Skye


             reply	other threads:[~2003-07-26  0:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-26  0:17 Skye Poier [this message]
2003-07-26  0:30 ` prompting Philippe Troin

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=20030726001734.GA93544@isilon.com \
    --to=skye@isilon.com \
    --cc=zsh-users@sunsite.dk \
    /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).