slackline: add (another) vt-sequence for <End> - lchat - A line oriented chat f… | |
git clone git://git.suckless.org/lchat | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 9bebbcf2af28fd16249ab2de19a86d9db390a9b1 | |
parent f212a3b26b2b248aa41c50f6393564cf1e29dbc2 | |
Author: Tom Schwindl <[email protected]> | |
Date: Sat, 22 Oct 2022 22:01:57 +0200 | |
slackline: add (another) vt-sequence for <End> | |
Some terminal emulators, like st, emit ^[[4~ when the <End> key is pressed. | |
This is a vt-sequence and analogue to the xterm-sequence ^[[F. | |
Diffstat: | |
M slackline.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/slackline.c b/slackline.c | |
@@ -200,6 +200,7 @@ sl_keystroke(struct slackline *sl, int key) | |
case '7': | |
sl_move(sl, HOME); | |
break; | |
+ case '4': | |
case '8': | |
sl_move(sl, END); | |
break; |