brow.sh terminal html rendering integration?

David Woodfall dave at dawoodfall.net
Tue Jul 10 16:54:21 UTC 2018


On Tuesday 10 July 2018 13:37,
Marcelo Laia <marcelolaia at gmail.com> put forth the proposition:
> A ter, 10/07/2018, 12:46, Patrick Shanahan <paka at opensuse.org> escreveu:
>
> >
> > have you tried w3m?
> > need to enable graphics mode
> >
>
> Please, how is it possible? Enable graphics mode?
>
> I use lynx. Are there graphics mode for its, too?
>
> Thanks
>
> Marcelo
>
> >

Links has a graphics mode for framebuffer consoles. Won't work in an
xterm or over ssh AFAIK.

w3m is capable of displaying images in some supported terminals, but I'm not
sure which. IIRC it needs compiling with gdk or pixbuf support.

What I tend to do depends on the requirement. If I am sent an image
attachment I have setup a special mailcap to scp it to me, then I can
open it locally.

~/.mutt-mailcap:

application/*; scp -q %s user at host:attachments/.
image/*;       scp -q %s user at host:attachments/.
audio/*;       scp -q %s user at host:attachments/.
video/*;       scp -q %s user at host:attachments/.

text/html; elinks %s;nametemplate=%s.html;copiousoutput

For website links that I want to open in a GUI I do kind of the same thing, but
with a shell script that ssh's me the link to my local browser. I use urlview
to open the links in the shell script.

url_handler.sh:

http_prgs="/home/david/scripts/urlopen:VT"
https_prgs="/home/david/scripts/urlopen:VT"

That should probably go in ~/.urlview but wth...

urlopen just does a ssh -q user at host "qutebrowser \"$URL\""

--

Linux: The OS people choose without $200,000,000 of persuasion.
  -- Mike Coleman

                                                            .--.  oo
                                                           (____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'


More information about the Mutt-users mailing list