readline: Support C-[ae] for HOME and END

This commit is contained in:
mintsuki 2022-02-04 22:54:11 +01:00
parent 171ee758ab
commit b93ceee721

View File

@ -70,6 +70,8 @@ int getchar_internal(uint8_t scancode, uint8_t ascii, uint32_t shift_state) {
if (shift_state & (GETCHAR_LCTRL | GETCHAR_RCTRL)) { if (shift_state & (GETCHAR_LCTRL | GETCHAR_RCTRL)) {
switch (ascii) { switch (ascii) {
case 'a': return GETCHAR_HOME;
case 'e': return GETCHAR_END;
case 'p': return GETCHAR_CURSOR_UP; case 'p': return GETCHAR_CURSOR_UP;
case 'n': return GETCHAR_CURSOR_DOWN; case 'n': return GETCHAR_CURSOR_DOWN;
case 'b': return GETCHAR_CURSOR_LEFT; case 'b': return GETCHAR_CURSOR_LEFT;