]> granicus.if.org Git - procps-ng/commitdiff
top: turn off the 'Ctrl' bottom window with 1 more key
authorJim Warner <james.warner@comcast.net>
Thu, 5 May 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Mon, 9 May 2022 08:44:21 +0000 (18:44 +1000)
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 <james.warner@comcast.net>
top/top.c

index 9f7477a0619a9a8cec38244ffeb67e4c3c8038f2..d31c5d9ac5311b2533d9cd06b839a8f8c1516635 100644 (file)
--- 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) {