]> granicus.if.org Git - procps-ng/commit
top: turn off the 'Ctrl' bottom window after some keys
authorJim Warner <james.warner@comcast.net>
Tue, 3 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)
commitd66c1f39b52d53ec279fc638aa4a6352d7672201
tree329014e4556359ae89e117318d796499fa739ad9
parent16e202d26d8de2950e6f92bdb4003ddbbd35f4ec
top: turn off the 'Ctrl' bottom window after some keys

To complete the implementation of this new feature, we
must address the problem created by any commands which
offer their own full replacement displays. Should that
'Ctrl' bottom window be active, a return from any such
command leaves that lower portion of a terminal blank.

While we could issue a 'TAGGED_TOSS' macro right after
invoking any of those 4 (currently) affected commands,
it is wrong to make them aware of this 'tagged' stuff.

So, I'll opt for a more generalized solution whereby a
notice regarding a corrupted screen is broadcast. Then
the logic already aware of 'tagging' can deal with it.

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