From 8b98d3effbdfe7e6656fd35069ce8d4e97ec90ba Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Sat, 30 Apr 2022 12:33:59 +0200 Subject: [PATCH] Document screen tab switching (TAB, Shift-TAB keys) --- Action.c | 2 ++ htop.1.in | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Action.c b/Action.c index 9ee0cdb5..ce3cd13c 100644 --- a/Action.c +++ b/Action.c @@ -502,6 +502,7 @@ static const struct { bool roInactive; const char* info; } helpLeft[] = { + { .key = " Tab: ", .roInactive = false, .info = "switch to next screen tab" }, { .key = " Arrows: ", .roInactive = false, .info = "scroll process list" }, { .key = " Digits: ", .roInactive = false, .info = "incremental PID search" }, { .key = " F3 /: ", .roInactive = false, .info = "incremental name search" }, @@ -526,6 +527,7 @@ static const struct { bool roInactive; const char* info; } helpRight[] = { + { .key = " S-Tab: ", .roInactive = false, .info = "switch to previous screen tab" }, { .key = " Space: ", .roInactive = false, .info = "tag process" }, { .key = " c: ", .roInactive = false, .info = "tag process and its children" }, { .key = " U: ", .roInactive = false, .info = "untag all processes" }, diff --git a/htop.1.in b/htop.1.in index c298e7cb..c81c8192 100644 --- a/htop.1.in +++ b/htop.1.in @@ -96,6 +96,10 @@ held. The following commands are supported while in .BR htop : .TP 5 +.B Tab, Shift-Tab +Select the next / the previous screen tab to display. +You can enable showing the screen tab names in the Setup screen (F2). +.TP .B Up, Alt-k Select (highlight) the previous process in the process list. Scroll the list if necessary.