nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 15ec0eb3ee06a0e6946879c1ecd63f862d935871
parent 7dad21f4f4ed3c5280e81e69da91f60a94a3408e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue,  6 Nov 2018 20:46:21 +0100

bindings: make <Alt+Up> and <Alt+Down> work also on a Linux console

This fixes https://savannah.gnu.org/bugs/?54964.

Diffstat:
Msrc/winio.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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) {