From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20061 invoked from network); 9 Jun 2004 14:46:25 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 9 Jun 2004 14:46:25 -0000 Received: (qmail 17487 invoked from network); 9 Jun 2004 14:45:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Jun 2004 14:45:45 -0000 Received: (qmail 3818 invoked by alias); 9 Jun 2004 14:45:32 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7501 Received: (qmail 3808 invoked from network); 9 Jun 2004 14:45:31 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 9 Jun 2004 14:45:28 -0000 Received: (qmail 16644 invoked from network); 9 Jun 2004 14:45:28 -0000 Received: from olympe.madism.org (HELO hermes.madism.org) (82.225.205.10) by a.mx.sunsite.dk with SMTP; 9 Jun 2004 14:45:26 -0000 Received: from localhost (localhost [127.0.0.1]) by hermes.madism.org (Postfix) with ESMTP id E75503C06 for ; Wed, 9 Jun 2004 16:44:58 +0200 (CEST) Received: from hermes.madism.org ([127.0.0.1]) by localhost (olympe [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14839-07 for ; Wed, 9 Jun 2004 16:44:58 +0200 (CEST) Received: by hermes.madism.org (Postfix, from userid 1000) id DEBF83C03; Wed, 9 Jun 2004 16:44:57 +0200 (CEST) Date: Wed, 9 Jun 2004 16:44:57 +0200 From: Pierre HABOUZIT To: Zsh Users Subject: Re: Interactive program in Zsh Message-ID: <20040609144457.GD10935@madism.org> Mail-Followup-To: Zsh Users References: <20040609143225.GA10606@DervishD> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qtZFehHsKgwS5rPz" Content-Disposition: inline In-Reply-To: <20040609143225.GA10606@DervishD> User-Agent: Mutt/1.5.5.1+cvs20040105i X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at madism.org X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-1.5 required=6.0 tests=BAYES_01 autolearn=no version=2.63 X-Spam-Hits: -1.5 --qtZFehHsKgwS5rPz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I don't know if this is the proper approach for what I need to > do: the user is limited to use up arrow and down arrow for travelling > into the list of options (maybe pg-up and pg-down for scrolling) and > 'enter' to select the highlighted option. The program must process a > text, present a list of options containing the text that matched > certain regex and allow the user to choose one of the options. why don't you use dialog for that ? I may be wrong, but i think it already implements all what you need --=20 Pierre Habouzit =20 http://www.madism.org/ --qtZFehHsKgwS5rPz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAxyJovGr7W6HudhwRAuh2AJ9vcG4ndBCIs4oP/KCODlrpESNDUwCglAG1 uV6KUnGi++YSc6aVYN27KEY= =uQvC -----END PGP SIGNATURE----- --qtZFehHsKgwS5rPz--