]> granicus.if.org Git - procps-ng/commit
top: fix a bug from when 'Ctrl' window was made sticky
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:20 +0000 (18:44 +1000)
commit793f3e85aeb41788e359c2f6f387812c328ac097
tree37c3d497d453eb852d4868f0d37d26bbc7541473
parent9dd75a4ac851f7e99dd402323fb98771708cb201
top: fix a bug from when 'Ctrl' window was made sticky

In the patch referenced below the bottom 'Ctrl' window
was made to remain until it was dismissed by the user.

As such, it required abandoning a 'Cap_nl_clreos' used
when all the terminal rows had not been drawn. Instead
each line had to be cleared individually until the row
reserved for that 'Ctrl' window area had been reached.

Unfortunately, while a 'Cap_nl_clreos' didn't create a
problem for 'batch' mode, a 'Cap_clr_eol' used instead
yielded an unending loop if those rows were limitless.

So, now we will only clear that area when top isn't in
'batch' mode (which should have always been the case).

Reference(s):
. May, 2022 - bottom window made sticky
commit 0f2a755b0b2754fca79545984e25ec52f4ae4444

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