From: Jim Warner Date: Wed, 18 May 2022 05:00:00 +0000 (-0500) Subject: top: extend shift+tab (back_tab) navigation to console X-Git-Tag: v4.0.1rc1~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e99c5abb;p=procps-ng 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 --- 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;