svn commit: r266423 - in head/sys: conf dev/i40e modules/i40e
glebius at FreeBSD.org
Tue May 20 17:16:20 UTC 2014
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
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.
Totus tuus, Glebius.
More information about the svn-src-head