From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11822 invoked from network); 23 Aug 2004 18:47:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Aug 2004 18:47:39 -0000 Received: (qmail 76955 invoked from network); 23 Aug 2004 18:47:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Aug 2004 18:47:29 -0000 Received: (qmail 14937 invoked by alias); 23 Aug 2004 18:46:46 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7911 Received: (qmail 14926 invoked from network); 23 Aug 2004 18:46:45 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 23 Aug 2004 18:46:45 -0000 Received: (qmail 74637 invoked from network); 23 Aug 2004 18:44:47 -0000 Received: from madrid10.amenworld.com (62.193.203.32) by a.mx.sunsite.dk with SMTP; 23 Aug 2004 18:44:45 -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 i7NIih110921 for ; Mon, 23 Aug 2004 20:44:43 +0200 Received: from disposable1@telefonica.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1BzJVi-0006Ne-00>; Mon, 23 Aug 2004 20:25:38 +0200 Date: Mon, 23 Aug 2004 20:25:38 +0200 From: DervishD To: zsh-users@sunsite.dk Subject: Re: Using zle outside zsh Message-ID: <20040823182538.GA24519@DervishD> Mail-Followup-To: zsh-users@sunsite.dk References: <20040823155951.GA24279@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Bart :) * Bart Schaefer dixit: > > The scenario: we have a nice program we use a lot, and it's very > > well coded, indeed. It is interactive, and takes its input from stdin > > and outputs to stdout/stderr, but it lacks command line editing. > > What I'm thinking is: will it be difficult to use zsh as the > > command line interpreter? > This is actually relatively easy to do. For a working example, see > Functions/Misc/nslookup in the zsh distribution. That's one of the many ideas I had, using pty, but I forgot about 'vared', which does exactly what I want... Thanks a lot for your answer, Bart :) The number of beers (sorry, soft drinks) I owe you is far beyond the cost of my mortgage ;)) I'm very grateful with you as always, Bart, I really mean it. Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/