i wrote:
> ralf wrote:
> > I just noticed with current SVN that Ctrl-U doesn't work, because it
> > depends on CONFIG_FEATURE_EDITING_FANCY_KEYS.
> > As Ctrl-U is a feature that works even without line editing, I consider
> > that strange. Especially because Ctrl-W, which is also present without
> > line editing, is always enabled.
>
> i noticed that too, when i was in the code the other day, but decided
> to leave it for another time. thanks for verifying.
i just took a look, since the set of keys suppressed by "fancy"
mode seemed somewhat arbitrary. (for instance, i use the vi-mode
'l' command all the time.)
the commands affected are:
emacs (and vi, since vi inherits all emacs commands in this implementation):
^A -- beginning of line
^B -- back one char
^E -- end of line
^F -- forward one char
^K -- clear to end
^L -- clear and redraw
^U -- clear to begining
vi only:
0 (zero) -- beginning of line
h -- back one char
^H -- back one char
DEL -- back one char
$ -- end of line
l -- forward one char
SPACE -- forward one char
i don't think most of those keys are "rare" at all -- certainly not ^U,
and a vi-user will probably use 'h', 'l', and '$'.
to put it in perspective,
emacs editing costs 2200 bytes
tab completion costs 3100 bytes
vi editing costs 2100 bytes
fancy keys costs another 259 bytes, but if i put just ^U back into
"non-fancy", where it belongs, fancy keys only saves 198 bytes. given
the savings, and the high cost of having editing at all, i think
we should remove the CONFIG check altogether.
any objections to me doing that?
paul
=---------------------
paul fox, [EMAIL PROTECTED]
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox