]> granicus.if.org Git - procps-ng/commit
top: make the new 'Ctrl' bottom window behavior sticky
authorJim Warner <james.warner@comcast.net>
Mon, 2 May 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 3 May 2022 09:21:21 +0000 (19:21 +1000)
commit0f2a755b0b2754fca79545984e25ec52f4ae4444
tree3a87c1f3fe1b16d591bdaea72bbc8208e1006ce9
parentb9723148a260189c5cd8cacc3acdd9719d34062a
top: make the new 'Ctrl' bottom window behavior sticky

After using this new feature for awhile, I encountered
numerous times when that 'Ctrl' window would disappear
as I was studying the contents. This was caused by the
death of the target task but it made me think that the
window could/should persist until dismissed by a user.

Well, now it will persist until that same Ctrl key has
been struck a 2nd time or a different Ctrl key used to
target another process after positioning it on row #1.

So now, instead of that former 'moving target' type of
approach, this window is more of a 'snapshot' in time.

[ even more significant, perhaps, is the fact that a ]
[ Ctrl window will now be drawn exactly 1 time only, ]
[ instead of being repainted after each delay cycle. ]

[ this will remain true no matter how many intervals ]
[ might elapse while its contents were under review. ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c
top/top.h