commit 9bebbcf2af28fd16249ab2de19a86d9db390a9b1
Author:     Tom Schwindl <[email protected]>
AuthorDate: Sat Oct 22 22:01:57 2022 +0200
Commit:     Jan Klemkow <[email protected]>
CommitDate: Tue Oct 25 23:11:18 2022 +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.

diff --git a/slackline.c b/slackline.c
index 4a4a2a9..382031e 100644
--- 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;

Reply via email to