From b93ceee721d9b3e3df54a13f757a067e82e6f082 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Fri, 4 Feb 2022 22:54:11 +0100 Subject: [PATCH] readline: Support C-[ae] for HOME and END --- common/lib/readline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lib/readline.c b/common/lib/readline.c index f13347b7..38fdc935 100644 --- a/common/lib/readline.c +++ b/common/lib/readline.c @@ -70,6 +70,8 @@ int getchar_internal(uint8_t scancode, uint8_t ascii, uint32_t shift_state) { if (shift_state & (GETCHAR_LCTRL | GETCHAR_RCTRL)) { switch (ascii) { + case 'a': return GETCHAR_HOME; + case 'e': return GETCHAR_END; case 'p': return GETCHAR_CURSOR_UP; case 'n': return GETCHAR_CURSOR_DOWN; case 'b': return GETCHAR_CURSOR_LEFT;