From: Jim Warner Date: Thu, 5 May 2022 05:00:00 +0000 (-0500) Subject: top: turn off the 'Ctrl' bottom window with 1 more key X-Git-Tag: v4.0.1rc1~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f068a66;p=procps-ng top: turn off the 'Ctrl' bottom window with 1 more key In that commit shown below, the concept of a corrupted display was introduced so that 'Ctrl' windows could be redrawn now that they were made more persistent. Well, it turns out there is another case where redrawing was necessary. That is when transitioning between task and thread modes. So this patch addresses those occasions. Reference(s): . May, 2022 - introduced Frames_signal BREAK_screen commit d66c1f39b52d53ec279fc638aa4a6352d7672201 Signed-off-by: Jim Warner --- diff --git a/top/top.c b/top/top.c index 9f7477a0..d31c5d9a 100644 --- a/top/top.c +++ b/top/top.c @@ -5215,6 +5215,8 @@ static void keys_global (int ch) { Winstk[i].begtask = Winstk[i].focus_pid = 0; // force an extra procs refresh to avoid %cpu distortions... Pseudo_row = PROC_XTRA; + // signal that we just corrupted entire screen + Frames_signal = BREAK_screen; break; case 'I': if (Cpu_cnt > 1) {