Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2014 13:11:13 +0400
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, Jack F Vogel <jfv@freebsd.org>, Rui Paulo <rpaulo@felyko.com>, Bruce Evans <brde@optusnet.com.au>, svn-src-head@freebsd.org, Julian Elischer <julian@freebsd.org>
Subject:   Re: svn commit: r266423 - in head/sys: conf dev/i40e modules/i40e
Message-ID:  <20140521091113.GA10086@zxy.spb.ru>
In-Reply-To: <20140520171613.GM50679@FreeBSD.org>
References:  <201405190121.s4J1L3qA068339@svn.freebsd.org> <53796149.8060000@freebsd.org> <AF83F052-00D1-40E1-A427-58EDE0853D42@felyko.com> <20140520223516.R2836@besplex.bde.org> <20140520171613.GM50679@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 20, 2014 at 09:16:13PM +0400, Gleb Smirnoff wrote:

> On Tue, May 20, 2014 at 11:40:01PM +1000, Bruce Evans wrote:
> B> Also, verbose names break formatting.  E.g., netstat -r has 5 columns
> B> available under Netif for the driver name and device number.  netstat
> B> -i has about the same under Name (possibly 1 or 2 not directly under
> B> Name, but reserved for the Name column).  systat has 3 columns
> B> available, but with a more flexible format that truncates other info.
> B> All driver name+numbers are broken now on freefall:
> 
> We must admit that nowadays 80x25 terminal is not enough :(
> 
> Would be cool if most of tools (netstat, systat, etc...) could
> determine size of terminal and dynamically widen all their fields.
> Thus, tool can run w/o any abbreviations when run in a script mode,
> run abbreviated on a small terminal, and run verbose on a wide
> terminal.
> 
> This sounds like a generic library providing a special version
> of printf(3), which specifies minimal and maximum sizes for fields
> and when extra terminal width is available it distributes this
> width evenly between all fields. Name it 'elastic printf'.
> Sounds like a nice Google SoC project. Or might be that such
> library already exists.

Sound like 'universal common distributed enterprise serial bus' from
Rambler.
Just simple check size of screen and select items and precession for
display.



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