]> granicus.if.org Git - procps-ng/commitdiff
top: extend shift+tab (back_tab) navigation to console <=== port of newlib e99c5abb
authorJim Warner <james.warner@comcast.net>
Wed, 15 Jun 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Sun, 19 Jun 2022 10:58:51 +0000 (20:58 +1000)
______________________________ original newlib message

Really, just extend shift+tab navigation to some linux
consoles (or maybe most consoles). However, there were
some consoles where shift+tab always yields just '\t'.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index a4c6e694ba330e06e133d4979ff8dc04033879a8..ccc36a8eaaed027b47b395ff56615f92fc4b691f 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -1227,7 +1227,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;