]> granicus.if.org Git - procps-ng/commit
top: improve scroll coordinates message handling
authorJim Warner <james.warner@comcast.net>
Sat, 30 Jun 2012 05:00:22 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 29 Aug 2012 07:28:53 +0000 (17:28 +1000)
commitfbfaa868babb0974c799d45e208619412afbdfef
tree726c1ae6033d92dbfc3b24ac4d2ac7d72ae3f0ed
parent896f3deeb9116b438a2ffcbc05b0499a64cbf38e
top: improve scroll coordinates message handling

With the introduction of intra-column scrolling, the
scroll coordinates message was enhanced to give some
hint of positioning within a scrolled column.

Rather than rebuild this somewhat costly string from
scratch with each frame, we'll now do the bulk of the
work only when column headers are constructed.

The only remaining per frame costs will then be the
addition of a few terminfo escapes and the current
Frame_maxtask count.

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