summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-05 15:14:54 +0200
committercgzones <cgzones@googlemail.com>2020-10-12 13:04:00 +0200
commitb47bc667a254c1b1a8d6b5a635ca73f6c91c2e1a (patch)
tree56a5f89246329bf188f8387ec3b8a9af13ce254b /htop.c
parentfc301b74473f2dc87dca6a338ac17126a058f68d (diff)
Add key to pause process list updates
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index 8d17de9b..44182ae1 100644
--- a/htop.c
+++ b/htop.c
@@ -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);

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