summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorMouad Alami <mouad@alami.xyz>2026-04-13 13:38:40 +0100
committerMouad Alami <mouad@alami.xyz>2026-04-13 13:38:40 +0100
commit2150d5e4f7e340313b32920976606d17776b8da2 (patch)
tree5e74b8c238cd0dc5a87f293883b3f5b0ad53cccc /config.h
parent3e5c3700456f0323489165a172f92b5d05f40b19 (diff)
added scrollback patch
Diffstat (limited to 'config.h')
-rw-r--r--config.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.h b/config.h
index 22daf77..3335ac2 100644
--- a/config.h
+++ b/config.h
@@ -177,9 +177,9 @@ static uint forcemousemod = ShiftMask;
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
- { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
+ { ShiftMask, Button4, kscrollup, {.i = 1} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
- { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} },
+ { ShiftMask, Button5, kscrolldown, {.i = 1} },
{ XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },
};
@@ -201,6 +201,8 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
+ { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
+ { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
};
/*