From e99c5abbf35a3c7e94d50a014c98f73dc6592691 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Wed, 18 May 2022 00:00:00 -0500 Subject: [PATCH] top: extend shift+tab (back_tab) navigation to console Really, extend shift+tab navigation to only some linux consoles (or maybe most consoles). However, there were some consoles where shift+tab always yields just '\t'. Signed-off-by: Jim Warner --- top/top.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/top/top.c b/top/top.c index 748db6f7..e57e3045 100644 --- a/top/top.c +++ b/top/top.c @@ -1143,7 +1143,8 @@ static int iokey (int action) { { "\xC3\xA8", kbd_LEFT }, { "\xC3\xAA", kbd_DOWN }, /* meta+ h,j (some xterms) */ { "\xC3\xAB", kbd_UP }, { "\xC3\xAC", kbd_RIGHT }, /* meta+ k,l (some xterms) */ { "\xC2\x88", kbd_HOME }, { "\xC2\x8A", kbd_PGDN }, /* ctrl+meta+ h,j (some xterms) */ - { "\xC2\x8B", kbd_PGUP }, { "\xC2\x8C", kbd_END } /* ctrl+meta+ k,l (some xterms) */ + { "\xC2\x8B", kbd_PGUP }, { "\xC2\x8C", kbd_END }, /* ctrl+meta+ k,l (some xterms) */ + { "\033\011", kbd_BTAB } }; #ifdef TERMIOS_ONLY char buf[SMLBUFSIZ], *pb;