Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Enhancing math expressions a bit
- X-seq: zsh-workers 7112
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Enhancing math expressions a bit
- Date: Tue, 13 Jul 1999 14:40:16 +0200
- In-reply-to: "Sven Wischnowsky"'s message of "Tue, 13 Jul 1999 15:03:26 DFT." <199907131303.PAA10232@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Sven Wischnowsky wrote:
> This does that: it replaces `keys' with `KEYS' and that contains the
> literal character codes.
Well, here's some documentation. But I'm worried about what happens with
control-space. Might it not be better to use an array with the literal
codes in (so a null-string means ^@), or alternatively provide a length
parameter, or use some form of metafication?
> Now, should we add a way to turn such codes into a readable form?
Can probably be done quite simply with a shell function, which could be
marked #autoload if needed.
--- Doc/Zsh/zle.yo.ky2 Wed Jun 23 15:47:06 1999
+++ Doc/Zsh/zle.yo Tue Jul 13 14:36:22 1999
@@ -154,12 +154,9 @@
item(tt(LASTWIDGET) (scalar))(
The name of the last widget that was executed.
)
-vindex(keys)
-item(tt(keys) (array))(
-The keys typed to invoke this widget, one element per
-key. Control-keys are reported with a leading `tt(^)', as in `tt(^A)',
-and meta-keys are reported with a leading `tt(M-)', as in `tt(M-a)' and
-`tt(M-^A)'.
+vindex(KEYS)
+item(tt(KEYS) (scalar))(
+The keys typed to invoke this widget, as a literal string.
)
vindex(NUMERIC)
item(tt(NUMERIC) (integer))(
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author