From: "Jérémie Roquet" <arkanosis@gmail.com>
To: zsh-users@zsh.org
Cc: nix@myproxylists.com
Subject: Re: ZSH's way to bind function to a key in a script?
Date: Wed, 9 Mar 2011 15:35:48 +0100 [thread overview]
Message-ID: <AANLkTi=O8arik7Au7fN5320H4zHHJftkA+WJ47RVDTo_@mail.gmail.com> (raw)
In-Reply-To: <34287570baba3024c8cffea8be3da248.squirrel@gameframe.net>
2011/3/9 <nix@myproxylists.com>:
> Can't get it working in a script. Tried both vt100/xterm terminals but nada.
> My purpose is this:
>
> while [ : ] ; do
>
> ...
>
> A user press the space button and he will see the script progress ....
>
> done
Then it's unrelated to bindkey ;-)
Try this:
while [ : ]; do
read -ks a
[[ $a = ' ' ]] && foo
done
Have a look at “man zshbuiltins” for more about the “read” builtin.
Best regards,
--
Jérémie
next prev parent reply other threads:[~2011-03-09 14:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 13:46 nix
2011-03-09 14:01 ` Jérémie Roquet
2011-03-09 14:05 ` Jérémie Roquet
[not found] ` <34287570baba3024c8cffea8be3da248.squirrel@gameframe.net>
2011-03-09 14:35 ` Jérémie Roquet [this message]
2011-03-10 0:22 ` Wendell Hom
2011-03-09 14:11 ` Peter Stephenson
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='AANLkTi=O8arik7Au7fN5320H4zHHJftkA+WJ47RVDTo_@mail.gmail.com' \
--to=arkanosis@gmail.com \
--cc=nix@myproxylists.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).