[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: allow printing completions vertically

From: Chet Ramey
Subject: Re: allow printing completions vertically
Date: Fri, 23 Apr 2010 11:19:55 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

On 4/10/10 1:06 PM, address@hidden 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.


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]