Re: [patch] width parameter in mailcap
On 2004-04-27, Hui Zhou <zhouhui@xxxxxxxxxxx> wrote:
> Hi, All,
>
> I am new here.
>
> I made a small patch to rfc1524.c so the mailcap viewer which accept a
> width parameter can expand %w into the term size. This can be used in
> example:
> text/html; lynx -width=%w -dump %s; copiousoutput;
> which utilizes the large term window.
Wouldn't this work as well?
text/html; lynx -width=$COLUMNS -dump %s; copiousoutput;
> Not tried yet, but I am thinking of further enhancements so %w-10
> can expand into COLS-10 (the term size minus 10) so the pager can
> utilize the large term size but still leave a margin of 10.
text/html; lynx -width=$((COLUMNS-10)) -dump %s; copiousoutput;
Gary
--
Gary Johnson | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA