On 4/10/10 1:06 PM, jida...@jidanni.org wrote:

> We see
>        COLUMNS
>               Used  by  the  select  builtin command to determine the terminal
>               width when printing selection  lists.   Automatically  set  upon
>               receipt of a SIGWINCH.
> says it only is used by select, not what we're interested in. And even if
> it was, we don't want to affect other programs too with COLUMNS (which we
> export COLUMNS=80 mostly.)

I think the best way to solve this is a readline-specific variable that
specifies the same thing as $COLUMNS.  $COLUMNS can be used as a second
choice, with a fallback to the actual screen width.

Look for the new variable in the next readline release.

Chet


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/


Reply via email to