From 3f068a66c84347a42fd27d8a809cea2656043b37 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 5 May 2022 00:00:00 -0500 Subject: [PATCH] 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 --- top/top.c | 2 ++ 1 file changed, 2 insertions(+) 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) {