[PATCH] top(1) inverse display of table header
Anonymous
swell.k at gmail.com
Wed Nov 17 09:31:32 UTC 2010
Anonymous <swell.k at gmail.com> writes:
> Xin LI <delphij at delphij.net> writes:
>
>> Hi,
>>
>> Here is a patch that makes top(1) to inverse its table header (PID
>> USERNAME THR, etc).
>>
>
> That MAX_COLS change in it makes `top -b' produce too much extra
> whitespace that's not trimmed and spans several lines, e.g.
>
> $ stty -a | sed 1q
> speed 38400 baud; 57 rows; 79 columns;
> $ top -b
> last pid: 54799; load averages: 1.90, 2.16, 2.16 up 0+04:28:34 10:18:15
> 91 processes: 4 running, 85 sleeping, 2 stopped
>
> Mem: 540M Active, 243M Inact, 2934M Wired, 79M Cache, 417M Buf, 136M Free
> Swap: 4097M Total, 8856K Used, 4088M Free
>
>
> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
> 1730 holo 14 46 0 358M 197M ucond 1 1:24 0.00% firefox-bin
A more illustrative screenshot, whitespace is selected
http://img201.imageshack.us/img201/4484/17763882.png
Workaround is to revert r214857.
More information about the freebsd-current
mailing list