Skip to content

Commit 5e8d655

Browse files
committed
Add extra key escape sequences
This fixes home/end. Pulled out of a larger commit by Ross Mohn, so thanks to him. Signed-off-by: Christopher Larson <kergoth@gmail.com>
1 parent 6185a57 commit 5e8d655

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config.def.h

+6
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,10 @@ static Action actions[] = {
229229

230230
static char const * const keytable[] = {
231231
/* add your custom key escape sequences */
232+
[KEY_HOME] = "\e[1~",
233+
[KEY_END] = "\e[4~",
234+
[KEY_F(1)] = "\eOP",
235+
[KEY_F(2)] = "\eOQ",
236+
[KEY_F(3)] = "\eOR",
237+
[KEY_F(4)] = "\eOS",
232238
};

0 commit comments

Comments
 (0)