display images inline in xterm (while using mutt)

Dave Woodfall dave at tty1.uk
Fri Dec 4 20:11:37 UTC 2020


On 04/12/20 11:16,
Patrick Shanahan <paka at opensuse.org> put forth the proposition:
> > $ /usr/libexec/w3m/w3mimgdisplay test.png
> >
> > appears to do nothing. The prompt just comes back.

Yes, it's probably easier to use w3m, come to think of it.

To use w3mimgdisplay, the path to the image needs to be piped to it,
along with an instruction code.  There are a few codes.  E.G. 5 makes
it print the dimensions:

echo "5;test.png" | w3mimgdisplay

will output the width and height.  To display the image is a bit
more complicated.

"0;1;start_x;start_y;width;height;;;;;image"

So you would want to write a shell script to handle it really.

--
Dave

Love is a snowmobile racing across the tundra and then suddenly it flips over,
pinning you underneath.  At night, the ice weasels come.
	 --Friedrich Nietzsche


More information about the Mutt-users mailing list