From 15ec0eb3ee06a0e6946879c1ecd63f862d935871 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 6 Nov 2018 20:46:21 +0100 Subject: [PATCH] bindings: make and work also on a Linux console This fixes https://savannah.gnu.org/bugs/?54964. --- src/winio.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/winio.c b/src/winio.c index e246d611..4cc657f3 100644 --- a/src/winio.c +++ b/src/winio.c @@ -609,6 +609,13 @@ int parse_kbinput(WINDOW *win) if (modifiers == 0x08) return ALT_DELETE; } + /* Is Alt being held? */ + if (modifiers == 0x08) { + if (retval == KEY_UP) + return ALT_UP; + if (retval == KEY_DOWN) + return ALT_DOWN; + } #endif /* Is Ctrl being held? */ if (modifiers & 0x04) {