st

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 12a2c5007da00586942ec07da0209f4b3c680958
parent 180364a73fa4ed7da5942668b5a292893c459dc4
Author: Saif Shahriar <89329547+saifshahriar@users.noreply.github.com>
Date:   Fri,  6 Sep 2024 07:02:33 +0600

Fix `<del>` key not working in shell

Previously `<del>` key was not working inside (neo)vim or nano (see issue #69).
PR #70 fixed, but caused another issue where `<del>` not functioning in a shell
prompt

Diffstat:
Mconfig.def.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -382,7 +382,7 @@ static Key key[] = { { XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0}, { XK_KP_Delete, ShiftMask, "\033[2K", -1, 0}, { XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0}, - { XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0}, + { XK_KP_Delete, XK_ANY_MOD, "\033[3~", -1, 0}, { XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0}, { XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0}, { XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0}, @@ -450,7 +450,7 @@ static Key key[] = { { XK_Delete, ControlMask, "\033[3;5~", +1, 0}, { XK_Delete, ShiftMask, "\033[2K", -1, 0}, { XK_Delete, ShiftMask, "\033[3;2~", +1, 0}, - { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0}, + { XK_Delete, XK_ANY_MOD, "\033[3~", -1, 0}, { XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0}, { XK_BackSpace, XK_NO_MOD, "\177", 0, 0}, { XK_BackSpace, Mod1Mask, "\033\177", 0, 0},