diff options
author | Sahil Siddiq <icegambit91@gmail.com> | 2023-05-23 19:50:49 +0530 |
---|---|---|
committer | Sahil Siddiq <icegambit91@gmail.com> | 2023-05-24 12:21:12 +0530 |
commit | 4227fbd06ebe113daf4b238484cedbf3d52de31c (patch) | |
tree | 2a82e5d3b547fdce41f6e4d822b1eb7ee026c27e | |
parent | dc883b2910f1feea7806fa5109916f9e1ae0d030 (diff) |
Document 'O' keyboard shortcut
Co-authored-by: BenBE <BenBE@geshi.org>
-rw-r--r-- | Action.c | 5 | ||||
-rw-r--r-- | htop.1.in | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -606,6 +606,7 @@ static const struct { { .key = " u: ", .roInactive = false, .info = "show processes of a single user" }, { .key = " H: ", .roInactive = false, .info = "hide/show user process threads" }, { .key = " K: ", .roInactive = false, .info = "hide/show kernel threads" }, + { .key = " O: ", .roInactive = false, .info = "hide/show processes in containers" }, { .key = " F: ", .roInactive = false, .info = "cursor follows process" }, { .key = " + - *: ", .roInactive = false, .info = "expand/collapse tree/toggle all" }, { .key = "N P M T: ", .roInactive = false, .info = "sort by PID, CPU%, MEM% or TIME" }, @@ -763,9 +764,9 @@ static Htop_Reaction actionHelp(State* st) { for (item = 0; helpRight[item].key; item++) { attrset((helpRight[item].roInactive && readonly) ? CRT_colors[HELP_SHADOW] : CRT_colors[HELP_BOLD]); - mvaddstr(line + item, 41, helpRight[item].key); + mvaddstr(line + item, 43, helpRight[item].key); attrset((helpRight[item].roInactive && readonly) ? CRT_colors[HELP_SHADOW] : CRT_colors[DEFAULT_COLOR]); - mvaddstr(line + item, 50, helpRight[item].info); + mvaddstr(line + item, 52, helpRight[item].info); } line += MAXIMUM(leftHelpItems, item); line++; @@ -258,6 +258,10 @@ Hide user threads: on systems that represent them differently than ordinary processes (such as recent NPTL-based systems), this can hide threads from userspace processes in the process list. (This is a toggle key.) .TP +.B O +Hide containerized processes: prevent processes running in a container +from being displayed in the process list. (This is a toggle key.) +.TP .B p Show full paths to running programs, where applicable. (This is a toggle key.) .TP |