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

Re: Mutt manual.txt.gz strange escapes



On Tue, Mar 18, 2003 at 07:50:51AM -0900, Christopher Swingley wrote:
> What's the appropriate way to view the Mutt manual 
> (/usr/share/doc/mutt/manual.txt.gz)?
> 
> My mutt (1.5.3-3, from sid) has a macro defined:
> 
>     zcat /usr/share/doc/mutt/manual.txt.gz | sensible-pager
> 
> which pages the manual through less.  I see lots of escape characters, 
> which makes it really hard to read:
> 
>      Usage: charset-hook ESC[4maliasESC[24m ESC[4mcharsetESC[0m
> 
> Some stuff shows up highlighted (charset-hook in the above example), but 
> theres lots of junk left over.  I've tried this in Eterm and xterm, and 
> get the same behavior.
> 
> Any hints on how to tweak less or what pager I'm supposed to be using?

'less -R' has been mentioned. The reason for this, I suspect, is an
upstream change in groff, which the maintainer of the mutt package could
work around if he wished by setting GROFF_NO_SGR=1 in the environment
during the relevant part of the package build.

I've arranged for that upstream change not to affect man pages unless
you explicitly ask for it (using GROFF_SGR=1), but it turns out to be
quite hard to do that for groff in general. FreeBSD seem to have managed
it, so I'll have to look into their changes at some point.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: