From owner-svn-src-all@FreeBSD.ORG Wed May 21 09:11:19 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E1E78D35; Wed, 21 May 2014 09:11:19 +0000 (UTC) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 97A1E21B4; Wed, 21 May 2014 09:11:19 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.82 (FreeBSD)) (envelope-from ) id 1Wn2YL-0002nq-OD; Wed, 21 May 2014 13:11:13 +0400 Date: Wed, 21 May 2014 13:11:13 +0400 From: Slawa Olhovchenkov To: Gleb Smirnoff Subject: Re: svn commit: r266423 - in head/sys: conf dev/i40e modules/i40e Message-ID: <20140521091113.GA10086@zxy.spb.ru> References: <201405190121.s4J1L3qA068339@svn.freebsd.org> <53796149.8060000@freebsd.org> <20140520223516.R2836@besplex.bde.org> <20140520171613.GM50679@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140520171613.GM50679@FreeBSD.org> User-Agent: Mutt/1.5.22 (2013-10-16) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, Jack F Vogel , Rui Paulo , Bruce Evans , svn-src-head@freebsd.org, Julian Elischer X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2014 09:11:20 -0000 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.