Add key to pause process list updates

This commit is contained in:
Christian Göttsche
2020-10-05 15:14:54 +02:00
committed by cgzones
parent fc301b7447
commit b47bc667a2
17 changed files with 103 additions and 46 deletions

3
htop.c
View File

@ -283,6 +283,7 @@ int main(int argc, char** argv) {
.pl = pl,
.panel = (Panel*) panel,
.header = header,
.pauseProcessUpdate = false,
};
MainPanel_setState(panel, &state);
@ -290,7 +291,7 @@ int main(int argc, char** argv) {
setCommFilter(&state, &(flags.commFilter));
}
ScreenManager* scr = ScreenManager_new(0, header->height, 0, -1, HORIZONTAL, header, settings, true);
ScreenManager* scr = ScreenManager_new(0, header->height, 0, -1, HORIZONTAL, header, settings, &state, true);
ScreenManager_add(scr, (Panel*) panel, -1);
ProcessList_scan(pl);