[hackers] [st] [patch] Differentiate Delete from Meta-Delete (like rxvt-unicode)

From: <markweston_AT_cock.li>
Date: Sun, 09 Sep 2018 14:33:41 +0100

 From 9df9679d84b08602902c6aad3742cf4b57ceadcb Mon Sep 17 00:00:00 2001
 From: Mark-Weston <markweston_AT_cock.li>
Date: Sun, 9 Sep 2018 15:34:52 +0300
Subject: [PATCH] Differentiate between Delete and Meta-Delete

---
  config.def.h | 4 ++++
  1 file changed, 4 insertions(+)
diff --git a/config.def.h b/config.def.h
index 82b1b09..071c58e 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -266,6 +266,8 @@ 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,     Mod1Mask,       "\033\033[P",   -1,    0},
+	{ XK_KP_Delete,     Mod1Mask,       "\033\033[3~",  +1,    0},
  	{ XK_KP_Delete,     XK_ANY_MOD,     "\033[P",       -1,    0},
  	{ XK_KP_Delete,     XK_ANY_MOD,     "\033[3~",      +1,    0},
  	{ XK_KP_Multiply,   XK_ANY_MOD,     "\033Oj",       +2,    0},
_AT_@ -334,6 +336,8 @@ 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,        Mod1Mask,       "\033\033[P",       -1,    0},
+	{ XK_Delete,        Mod1Mask,       "\033\033[3~",      +1,    0},
  	{ XK_Delete,        XK_ANY_MOD,     "\033[P",       -1,    0},
  	{ XK_Delete,        XK_ANY_MOD,     "\033[3~",      +1,    0},
  	{ XK_BackSpace,     XK_NO_MOD,      "\177",          0,    0},
-- 
2.18.0
Received on Sun Sep 09 2018 - 15:33:41 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 09 2018 - 15:36:24 CEST