Roberto Vargas - it works in a perfect way! I have one question. Why
didn't it work by default on ash? Is ash a sucky shell? Should I file
a bug? Because by what I understand this is a hack, right? Not the
ideal way. But so far it works really well!

On Tue, Jan 19, 2016 at 12:33 PM, Roberto E. Vargas Caballero
<k...@shike2.com> wrote:
> On Tue, Jan 19, 2016 at 10:02:01AM -0200, Brad Luther wrote:
>> I'm using ash and it's not working out of the box.
>> I'll see if I can find a patch or then I'll try using mksh, but I
>> really like ash.
>> Thanks for the tips.
>
>
> The patch is not so complex ...
> Can someone put it in the wiki?
>
> diff --git a/config.def.h b/config.def.h
> index fd09d72..8450f42 100644
> --- a/config.def.h
> +++ b/config.def.h
> @@ -245,8 +245,7 @@ static Key key[] = {
>         { XK_KP_Delete,     ControlMask,    "\033[3;5~",    +1,    0,    0},
>         { XK_KP_Delete,     ShiftMask,      "\033[2K",      -1,    0,    0},
>         { XK_KP_Delete,     ShiftMask,      "\033[3;2~",    +1,    0,    0},
> -       { XK_KP_Delete,     XK_ANY_MOD,     "\033[P",       -1,    0,    0},
> -       { XK_KP_Delete,     XK_ANY_MOD,     "\033[3~",      +1,    0,    0},
> +       { XK_KP_Delete,     XK_ANY_MOD,     "\033[3~",       0,    0,    0},
>         { XK_KP_Multiply,   XK_ANY_MOD,     "\033Oj",       +2,    0,    0},
>         { XK_KP_Add,        XK_ANY_MOD,     "\033Ok",       +2,    0,    0},
>         { XK_KP_Enter,      XK_ANY_MOD,     "\033OM",       +2,    0,    0},
> @@ -300,8 +299,7 @@ static Key key[] = {
>         { XK_Delete,        ControlMask,    "\033[3;5~",    +1,    0,    0},
>         { XK_Delete,        ShiftMask,      "\033[2K",      -1,    0,    0},
>         { XK_Delete,        ShiftMask,      "\033[3;2~",    +1,    0,    0},
> -       { XK_Delete,        XK_ANY_MOD,     "\033[P",       -1,    0,    0},
> -       { XK_Delete,        XK_ANY_MOD,     "\033[3~",      +1,    0,    0},
> +       { XK_Delete,        XK_ANY_MOD,     "\033[3~",       0,    0,    0},
>         { XK_BackSpace,     XK_NO_MOD,      "\177",          0,    0,    0},
>         { XK_Home,          ShiftMask,      "\033[2J",       0,   -1,    0},
>         { XK_Home,          ShiftMask,      "\033[1;2H",     0,   +1,    0},
>

Reply via email to