<<< Date Index >>>     <<< Thread Index >>>

Re: :set wrapmargin=-72



> On Tue, 12 Apr 2005, Gary Johnson wrote:
> 
> > I'm not saying this isn't a good idea, but you can also achieve this
> > behavior without modifying mutt by using the shell:
> >
> >    set wrapmargin=`echo $(( $COLUMNS - 72 ))`

On 2005-04-12, Thomas Dickey <dickey@xxxxxxx> wrote:
 
> no: $COLUMNS is not set in all configurations (it's something that you'll
> see on platforms that assume some applications use termcap).
> 
> Better: use "tput cols" if you don't want the feature built into mutt.
> That should be equivalent to the curses COLS value.

On 2005-04-12, Kyle Wheeler <kyle-mutt-dev@xxxxxxxxxxxxxx> wrote:

> The other tricky bit there, that that solution doesn't handle, is what 
> mutt should do if the terminal gets resized while mutt is running.

Both good points.  I stand corrected.

Regards,
Gary

-- 
Gary Johnson                               | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx                   | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA