Actually I've been carefully through ksh man, and if I try to use prefix-2
more than once it just applies to the last entry, e.g.:

bind '^[[3'=prefix-2
bind '^[[3~'=delete-char-forward

and here Del works OK, but if I add:

bind '^[[7'=prefix-2
bind '^[[7~'=beginning-of-line

then Home works but Del does not anymore, and this does not even consider
End; as well, trying with:

bind '^[['=prefix-2
bind '^[[3~'=delete-char-forward
bind '^[[7~'=beginning-of-line
bind '^[[8~'=end-of-line

yields a flawlessly working Del, plus a working Home and End which, each
time pressed, add a nasty tilde at cursor.
All this testing was made in CLI only



On Thu, Nov 11, 2010 at 6:50 PM, Ted Unangst <[email protected]> wrote:

> On Thu, Nov 11, 2010 at 6:52 AM, Paolo Aglialoro <[email protected]>
> wrote:
> > The immediate try with "bind '^[[7~'=beginning-of-line" led to an
> > effectively working Home, adding a tilde every keypress.
> > So I decided to copy your way for Del and to define "^[[7" as a prefix
> with
> > "bind '^[[7'=prefix-1" as prefix-2 was already busy with Del; and then
> again
> > "bind '^[[7~'=beginning-of-line"; you know what??? IT WORKED!
>
> You have misinterpreted what prefix-2 means.  You can use it more than
> once.  Consult the man page for ksh.

Reply via email to