From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10906 invoked by alias); 9 Mar 2011 14:36:08 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15852 Received: (qmail 983 invoked from network); 9 Mar 2011 14:36:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=NsAslC4FEOj9UEBqG37nTKVdDHv2XVpyJcOJGhx/vMI=; b=fGlbHqstOaCrqZ9m+5giu4yLpcOUZ3iM8FmfGAOBaLFXYkzZOiyEeevZThuzbVwkdc kesRjTUwJ1sfvaVtRyRK36oT5Jag4kBqb5cSCTvAkdbK9L6JhQwUQ0nXIW2X3T4D5oAl 9rKk7QrUTN6irNNm4qbfa9kauuovOEE3j26/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=xlTSu/pN0PHFeBIeV/P0T8cEbAfPMxpw+VrWiC5wBS1Mr1oqOPVf8Sd/ISS86nm7xh 9qNHDba/qkX031mhnsUetAHil6RQUKgh3qLLLwRodonKyalwwLWNkkQps8qfJxIK7L5o qrk5KkT0E4FrtuNSJHsL/iFiDTitgAzDxcbbA= MIME-Version: 1.0 In-Reply-To: <34287570baba3024c8cffea8be3da248.squirrel@gameframe.net> References: <34287570baba3024c8cffea8be3da248.squirrel@gameframe.net> From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Date: Wed, 9 Mar 2011 15:35:48 +0100 Message-ID: Subject: Re: ZSH's way to bind function to a key in a script? To: zsh-users@zsh.org Cc: nix@myproxylists.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2011/3/9 : > Can't get it working in a script. Tried both vt100/xterm terminals but na= da. > 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 =3D ' ' ]] && foo done Have a look at =E2=80=9Cman zshbuiltins=E2=80=9D for more about the =E2=80= =9Cread=E2=80=9D builtin. Best regards, --=20 J=C3=A9r=C3=A9mie