top: extend 'focus' navigation to shift+tab (back_tab)
authorJim Warner <james.warner@comcast.net>
Tue, 17 May 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Wed, 18 May 2022 11:30:56 +0000 (21:30 +1000)
commit434e224230bafddf9ad2d05df282321a0fa74ec2
tree14225d6da8d406a9e36e173be9d36c63e1f18395
parentc00d09edf182e65105f2f5090342b3d0fddd4b12
top: extend 'focus' navigation to shift+tab (back_tab)

Some of those bottom windows grow quite large, as with
the firefox environment. If one is navigating the data
using the tab key, it can be very inconvenient when an
element should be reexamined but that focus has moved.

Therefore, this commit will support the 'back_tab' key
which is a standard combination of the shift+tab keys.

Now a user can easily backup up to any missed element,
assuming a terminal emulator honors that terminfo key.

[ a gui emulator typically will honor the 'back_tab' ]
[ terminfo string, whereas a linux console does not. ]

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