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
This commit is contained in:
Daniel Lange
2021-02-12 18:48:09 +01:00
parent c44b2ec795
commit 2c6222e30a
8 changed files with 36 additions and 3 deletions

3
htop.c
View File

@ -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]);