summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-02-12 18:48:09 +0100
committerDaniel Lange <DLange@git.local>2021-02-13 16:47:04 +0100
commit2c6222e30a25a833e8554709818e1c378ca46848 (patch)
tree676239606f4fbc2fd6c11bf2b675edd9bd1cbdc1 /htop.c
parentc44b2ec795d243126fd5a53169ec533f4a5b3bd0 (diff)
Option and key ("*") to collapse / expand all branches under PID 1
(and PID 2 if kernel threads are shown) Based on hishamhm/htop#510 by Krishna Chaitanya, B Closes #68
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/htop.c b/htop.c
index 65ad21e4..785d4554 100644
--- a/htop.c
+++ b/htop.c
@@ -469,6 +469,9 @@ int main(int argc, char** argv) {
millisleep(75);
ProcessList_scan(pl, false);
+ if (settings->allBranchesCollapsed)
+ ProcessList_collapseAllBranches(pl);
+
ScreenManager_run(scr, NULL, NULL);
attron(CRT_colors[RESET_COLOR]);

© 2014-2024 Faster IT GmbH | imprint | privacy policy