On 20 May 2014, at 18:16, Gleb Smirnoff <gleb...@freebsd.org> wrote:

> 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.

We have a summer of code project to teach (some of) these tools to produce a 
structured, machine-readable, output and write a few generic tools for 
processing them.  This should make it a lot easier to produce simple tools that 
can fit the information that you actually want into a terminal (or send HTML to 
netcat, or whatever).

David

_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to