On 6/11/14 11:07 AM, Stefano Zacchiroli wrote:
> 
> Plain old ioctl can actually query terminal width without requiring any
> additional library --- example attached.
> 
> I think it would be a much more useful default for --columns than
> getenv(COLUMNS), as the latter is almost always gonna be empty.

I suggest that if the user has taken the effort to export COLUMNS,
it should be used. If not, then the ioctl (assuming portability)
is a reasonable fallback.

-=Doug


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to