From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8183 invoked from network); 9 Jun 2004 14:55:35 -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:55:35 -0000 Received: (qmail 26818 invoked from network); 9 Jun 2004 14:54:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Jun 2004 14:54:45 -0000 Received: (qmail 7470 invoked by alias); 9 Jun 2004 14:54:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7502 Received: (qmail 7460 invoked from network); 9 Jun 2004 14:54:33 -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:54:30 -0000 Received: (qmail 26040 invoked from network); 9 Jun 2004 14:54:29 -0000 Received: from madrid10.amenworld.com (62.193.203.32) by a.mx.sunsite.dk with SMTP; 9 Jun 2004 14:54:28 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id i59EsPw16046 for ; Wed, 9 Jun 2004 16:54:25 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1BY4R7-0002qp-00>; Wed, 9 Jun 2004 16:52:17 +0200 Date: Wed, 9 Jun 2004 16:52:17 +0200 From: DervishD To: Zsh Users Subject: Re: Interactive program in Zsh Message-ID: <20040609145217.GB10606@DervishD> Mail-Followup-To: Zsh Users References: <20040609143225.GA10606@DervishD> <20040609144457.GD10935@madism.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040609144457.GD10935@madism.org> User-Agent: Mutt/1.4.2.1i Organization: Pleyades X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Hi Pierre :) * Pierre HABOUZIT dixit: > > 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 AFAIK, dialog won't be able to do the processing, so I will end up doing an script using sed, grep or awk to do the processing and dialog (is not called cdialog nowadays?) for the user to choose the options and run a program on them. I prefer to do all of it in an script, although dialog will do the option-choosing part easily. Thanks for pointing, anyway :) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/