]> granicus.if.org Git - procps-ng/commit
top: reduce use of 'clear_screen' to absolute minimum
authorJim Warner <james.warner@comcast.net>
Tue, 7 Feb 2012 21:15:15 +0000 (15:15 -0600)
committerCraig Small <csmall@enc.com.au>
Wed, 8 Feb 2012 10:00:18 +0000 (21:00 +1100)
commit9349100dd3cff28e6a91e4b77596f55f3b91d140
treeea6a4d4aee565c9e74c6cafb4c9ab0b2fe136b8f
parent9e7dd43ab7b2e68177cefd49b3c07311ea79bc1a
top: reduce use of 'clear_screen' to absolute minimum

Along the way to width override support (-w switch),
this top began clearing the screen far more often
than his predecessor.  In fact, it happend with each
user keystroke.

This commit dramatically reduces those occurances.
The screen will now be cleared only when an actual
SIGWINCH is received.

Thanks for identifying this flaw belongs to:
James Cloos, cloos@jhcloos.com

References:
http://www.freelists.org/post/procps/Merge-request

Blame:   c2dcbef4826806f85b7ad6de2d9fe99bc390d603
Author:  Jim Warner <james.warner@comcast.net>
Date:    Thu May 26 11:33:32 2011 +0200
subject: added output width/height override support to top, + misc
top/top.c