[hackers] [st][PATCH] Support Alt+PageUp and Alt+PageDown

From: Max Schillinger <maxschillinger_AT_web.de>
Date: Mon, 26 Jul 2021 14:51:10 +0200

These keybindings are used for example by default in byobu[1] for
starting copy-mode and scrolling up/down[2].

[1]: https://www.byobu.org/
[2]: http://bazaar.launchpad.net/~kirkland/byobu/trunk/view/head:/usr/share/byobu/keybindings/f-keys.tmux#L66
---
 config.def.h | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/config.def.h b/config.def.h
index 6f05dce..a020012 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -257,6 +257,7 @@ static Key key[] = {
 	{ XK_KP_Right,      XK_ANY_MOD,     "\033[C",        0,   -1},
 	{ XK_KP_Right,      XK_ANY_MOD,     "\033OC",        0,   +1},
 	{ XK_KP_Prior,      ShiftMask,      "\033[5;2~",     0,    0},
+	{ XK_KP_Prior,      Mod1Mask,       "\033[5;3~",     0,    0},
 	{ XK_KP_Prior,      XK_ANY_MOD,     "\033[5~",       0,    0},
 	{ XK_KP_Begin,      XK_ANY_MOD,     "\033[E",        0,    0},
 	{ XK_KP_End,        ControlMask,    "\033[J",       -1,    0},
_AT_@ -265,6 +266,7 @@ static Key key[] = {
 	{ XK_KP_End,        ShiftMask,      "\033[1;2F",    +1,    0},
 	{ XK_KP_End,        XK_ANY_MOD,     "\033[4~",       0,    0},
 	{ XK_KP_Next,       ShiftMask,      "\033[6;2~",     0,    0},
+	{ XK_KP_Next,       Mod1Mask,       "\033[6;3~",     0,    0},
 	{ XK_KP_Next,       XK_ANY_MOD,     "\033[6~",       0,    0},
 	{ XK_KP_Insert,     ShiftMask,      "\033[2;2~",    +1,    0},
 	{ XK_KP_Insert,     ShiftMask,      "\033[4l",      -1,    0},
_AT_@ -359,9 +361,11 @@ static Key key[] = {
 	{ XK_End,           XK_ANY_MOD,     "\033[4~",       0,    0},
 	{ XK_Prior,         ControlMask,    "\033[5;5~",     0,    0},
 	{ XK_Prior,         ShiftMask,      "\033[5;2~",     0,    0},
+	{ XK_Prior,         Mod1Mask,       "\033[5;3~",     0,    0},
 	{ XK_Prior,         XK_ANY_MOD,     "\033[5~",       0,    0},
 	{ XK_Next,          ControlMask,    "\033[6;5~",     0,    0},
 	{ XK_Next,          ShiftMask,      "\033[6;2~",     0,    0},
+	{ XK_Next,          Mod1Mask,       "\033[6;3~",     0,    0},
 	{ XK_Next,          XK_ANY_MOD,     "\033[6~",       0,    0},
 	{ XK_F1,            XK_NO_MOD,      "\033OP" ,       0,    0},
 	{ XK_F1, /* F13 */  ShiftMask,      "\033[1;2P",     0,    0},
--
2.25.1
Received on Mon Jul 26 2021 - 14:51:10 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 26 2021 - 15:00:32 CEST