On Mon, Mar 14, 2016 at 01:38:48AM -0600, Anthony J. Bentley wrote:
> COLUMNS handling in our tree is inconsistent.
> 
> POSIX specifies that if COLUMNS is a valid value (read: 1 or greater),
> it takes precedence; otherwise, width is handled in an unspecified 
> manner.
> 
> Most programs follow COLUMNS, TIOCGWINSZ if that fails, and use 80 if
> that fails. Some do TIOCGWINSZ, then COLUMNS, then 80. Some use a
> different value than 80. And they're all inconsistently documented, if
> they're documented at all.
> 
More specifically, 

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

Assuming we want this, there is also LINES.

We have tools that do not even look at COLUMNS and LINES in the tree.
For instance, tmux, systat, top, pkg_add, dpb.

So, does it make sense to put COLUMNS and SIZE forward ?
I think this is the first important question to ask...

(I remember having COLUMNS and LINES hardcoded in my old, old .profile 
around SunOS4...  we can probably assume this is gone now)

Reply via email to