Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: example startup file
- X-seq: zsh-workers 14285
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: example startup file
- Date: Wed, 9 May 2001 17:24:10 +0000
- In-reply-to: <3AF9746C.DD676141@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <3AF833DA.85B97A2E@xxxxxxxxxxxxx> <010508125610.ZM7477@xxxxxxxxxxxxxxxxxxxxxxx> <3AF9746C.DD676141@xxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author