And of course i only did this patch for
XK_KP_Delete and forgot about
XK_Delete.

--Markus


Am 22.06.2013 23:31, schrieb Markus Teich:
And two more.

The first one (0005…) should not break anything, because it just adds a
default keymap string for the del key. I can confirm, that the del key
works as expected in mksh prompt (which it did not before this patch
without the echo `tput smkx` >/dev/tty trick mentioned in the FAQ) and
it still works in the bash prompt.

--Markus


Am 22.06.2013 23:10, schrieb Markus Teich:
see attached.

--Markus

>From 0e2b8571f364054f385a1708b201cc39060a12f8 Mon Sep 17 00:00:00 2001
From: Markus Teich <markus.te...@stusta.mhn.de>
Date: Sat, 22 Jun 2013 23:37:35 +0200
Subject: [PATCH 7/7] fix: make del key work in mksh for real

---
 config.def.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h
index 394b396..d5e8a2e 100644
--- a/config.def.h
+++ b/config.def.h
@@ -235,8 +235,8 @@ 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[3~",       0,    0,    0},
 	{ XK_Delete,        XK_ANY_MOD,     "\033[P",       -1,    0,    0},
-	{ XK_Delete,        XK_ANY_MOD,     "\033[3~",      +1,    0,    0},
 	{ XK_Home,          ShiftMask,      "\033[1;2H",     0,    0,    0},
 	{ XK_Home,          XK_ANY_MOD,     "\033[H",        0,   -1,    0},
 	{ XK_Home,          XK_ANY_MOD,     "\033[1~",       0,   +1,    0},
-- 
1.8.2

Reply via email to