diff options
author | Daniel Lange <DLange@git.local> | 2021-02-12 18:48:09 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-02-13 16:47:04 +0100 |
commit | 2c6222e30a25a833e8554709818e1c378ca46848 (patch) | |
tree | 676239606f4fbc2fd6c11bf2b675edd9bd1cbdc1 /htop.c | |
parent | c44b2ec795d243126fd5a53169ec533f4a5b3bd0 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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]); |