Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2010 12:31:15 +0300
From:      Anonymous <swell.k@gmail.com>
To:        Xin LI <d@delphij.net>
Cc:        FreeBSD Current <freebsd-current@FreeBSD.ORG>
Subject:   Re: [PATCH] top(1) inverse display of table header
Message-ID:  <86oc9othy4.fsf@gmail.com>
In-Reply-To: <861v6kwgup.fsf@gmail.com> (Anonymous's message of "Wed, 17 Nov 2010 10:26:38 %2B0300")
References:  <4CC62413.50703@delphij.net> <861v6kwgup.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Anonymous <swell.k@gmail.com> writes:

> Xin LI <delphij@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86oc9othy4.fsf>