From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10554 invoked from network); 9 May 2001 17:24:55 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 May 2001 17:24:55 -0000 Received: (qmail 24399 invoked by alias); 9 May 2001 17:24:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14285 Received: (qmail 24387 invoked from network); 9 May 2001 17:24:49 -0000 From: "Bart Schaefer" Message-Id: <1010509172410.ZM13182@candle.brasslantern.com> Date: Wed, 9 May 2001 17:24:10 +0000 In-Reply-To: <3AF9746C.DD676141@u.genie.co.uk> Comments: In reply to Oliver Kiddle "Re: example startup file" (May 9, 5:46pm) References: <3AF833DA.85B97A2E@u.genie.co.uk> <010508125610.ZM7477@candle.brasslantern.com> <3AF9746C.DD676141@u.genie.co.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: Oliver Kiddle , zsh-workers@sunsite.dk Subject: Re: example startup file MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 9, 5:46pm, Oliver Kiddle wrote: } } Has anyone got a useful and very short user-defined zle widget we could } add? insert-octal () { # Insert the ASCII value in octal of the next character typed local c typeset -i 8 o typeset -Z 3 x # Why doesn't "typeset -Z 3 -i 8 o" work? if read -k 1 c; then ((o=#c)) x=${o#8#} LBUFFER="$LBUFFER\\$x" fi } -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net