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

Re: screen, mutt, svgalib



Thus spake A. S. Budden:
> Hi there,
> 
> image/*; mutt_bgrun /usr/bin/display %s; test=InXTerm
> image/*; /usr/bin/zgv --zoom-reduce-only --zoom -m '1024 768 24' %s; 
> test=InPlainTerm
> 
> When I receive an email with a picture as an attachment, I can view it
> in an xterm using ImageMagick's display, or if I'm in a virtual console
> "TERM=linux", I can also view it, using zgv.  However, if I'm using
> screen it seems to start to load but then exit immediately.  This is not
> simply a problem with screen and svgalib because if I try to view a
> picture using zgv when mutt isn't running, it works fine.
> 

I seem to have solved this, although I've no idea why it now works.  I
noticed that the problem didn't exist with svp (which I have to handle
pdfs when in a linux console -- I never managed to get bmv to run).
Anyway, to fix this problem I added a sleep 1 line to the end of the
mailcap entry:

image/*; /usr/bin/zgv --zoom-reduce-only --zoom -m '1024 768 24' %s \; sleep 1; 
test=InPlainTerm

Bizarre, but never mind...

Al