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

This commit is contained in:
mintsuki 2022-02-04 22:54:11 +01:00
parent 6e0fde5cfb
commit b51f2528d1
1 changed files with 2 additions and 0 deletions

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)) {
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;