On Sun, Feb 15, 2015 at 07:35:51PM +0100, k...@shike2.com wrote:
> 
> > The ioctl() can be assumed to be present on all systems, but in case
> > TIOCGWINSZ doesn't exist, we fall back to the fixed value. This is the
> > best of both worlds.
> > 
> 
> I like your solution, but I think COLUMNS should have a bigger
> priority, because in this case user can define a different value of
> the current width.

Yes, we should fallback to a fixed value only after trying COLUMNS.

Reply via email to