readline: Support C-[ae] for HOME and END
This commit is contained in:
parent
171ee758ab
commit
b93ceee721
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user