Discussion:
brow.sh terminal html rendering integration?
Leho Kraav
2018-07-10 10:04:15 UTC
Permalink
Hi all. Discovered https://www.brow.sh today via GitHub trending repos newsletter.

Has anybody here tried integrating it w/ mutt? How would we go about it?
Patrick Shanahan
2018-07-10 10:27:57 UTC
Permalink
Post by Leho Kraav
Hi all. Discovered https://www.brow.sh today via GitHub trending repos newsletter.
Has anybody here tried integrating it w/ mutt? How would we go about it?
edit the mailcap file you point to in ~/.muttrc
text/html; browsh -dump -v -F -T text/html %s; nametemplate=%s.html; needsterminal
text/html; browsh -dump %s; nametemplate=%s.html; copiousoutput

trying now.
--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Patrick Shanahan
2018-07-10 10:53:18 UTC
Permalink
Post by Patrick Shanahan
Post by Leho Kraav
Hi all. Discovered https://www.brow.sh today via GitHub trending repos newsletter.
Has anybody here tried integrating it w/ mutt? How would we go about it?
edit the mailcap file you point to in ~/.muttrc
text/html; browsh -dump -v -F -T text/html %s; nametemplate=%s.html; needsterminal
text/html; browsh -dump %s; nametemplate=%s.html; copiousoutput
trying now.
first mailcap line is not used ?? I am not well versed on mailcap
second line needs "-dump" removed, but display is not good. w3m is much
better.

removed browsh. app need much work, cursor is not shown, active input
field is not shown.
--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Matthias Apitz
2018-07-10 10:34:13 UTC
Permalink
Post by Leho Kraav
Hi all. Discovered https://www.brow.sh today via GitHub trending repos newsletter.
Has anybody here tried integrating it w/ mutt? How would we go about it?
Nowadays I would never click on such URL which looks more like a
phishing attack. If it is not, please provide, for example, the GitHub
URL.

matthias
--
Matthias Apitz, ✉ ***@unixarea.de, ⌂ http://www.unixarea.de/ 📱 +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
Georg Faerber
2018-07-10 12:12:44 UTC
Permalink
Post by Matthias Apitz
Post by Leho Kraav
Hi all. Discovered https://www.brow.sh today via GitHub trending repos newsletter.
Has anybody here tried integrating it w/ mutt? How would we go about it?
Nowadays I would never click on such URL which looks more like a
phishing attack. If it is not, please provide, for example, the GitHub
URL.
Here you go: https://github.com/browsh-org/browsh
Matthias Apitz
2018-07-10 12:41:31 UTC
Permalink
Post by Georg Faerber
Post by Matthias Apitz
Post by Leho Kraav
Hi all. Discovered https://www.brow.sh today via GitHub trending repos newsletter.
Has anybody here tried integrating it w/ mutt? How would we go about it?
Nowadays I would never click on such URL which looks more like a
phishing attack. If it is not, please provide, for example, the GitHub
URL.
Here you go: https://github.com/browsh-org/browsh
I cloned the git and is seems not be straight forward to compile an own
version. As well it needs internally FF 57++. And, ofc, I'd never use a
binary blob for it.

matthias
--
Matthias Apitz, ✉ ***@unixarea.de, ⌂ http://www.unixarea.de/ 📱 +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
Leho Kraav
2018-07-10 12:12:56 UTC
Permalink
Post by Matthias Apitz
Post by Leho Kraav
Hi all. Discovered https://www.brow.sh today via GitHub trending repos newsletter.
Has anybody here tried integrating it w/ mutt? How would we go about it?
Nowadays I would never click on such URL which looks more like a
phishing attack. If it is not, please provide, for example, the GitHub
URL.
Yeah I see your point https://github.com/browsh-org/browsh
Leho Kraav
2018-07-10 12:59:46 UTC
Permalink
Post by Leho Kraav
Yeah I see your point https://github.com/browsh-org/browsh
I suppose you could just set it up in .mailcap as your text/html program.
text/html; browsh %s
But I can't get this to work, so I can't confirm.
Personally, I don't see how you can use the phrase "purely text-based"
to describe a program that has to run Firefox over an X connection.
Yeah, my wording was probably off.

I run FF as my main browser, so this would be interesting to compare.

Opening HTML attachments in browser is too time-consuming, but current
console browsers rendering is also suboptimal.

This hybrid brow.sh thing therefore looks quite intriguing.
Patrick Shanahan
2018-07-10 15:46:24 UTC
Permalink
Post by Leho Kraav
Post by Leho Kraav
Yeah I see your point https://github.com/browsh-org/browsh
I suppose you could just set it up in .mailcap as your text/html program.
text/html; browsh %s
But I can't get this to work, so I can't confirm.
Personally, I don't see how you can use the phrase "purely text-based"
to describe a program that has to run Firefox over an X connection.
Yeah, my wording was probably off.
I run FF as my main browser, so this would be interesting to compare.
Opening HTML attachments in browser is too time-consuming, but current
console browsers rendering is also suboptimal.
This hybrid brow.sh thing therefore looks quite intriguing.
have you tried w3m?
need to enable graphics mode
--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Marcelo Laia
2018-07-10 16:37:35 UTC
Permalink
Post by Patrick Shanahan
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
David Woodfall
2018-07-10 16:54:21 UTC
Permalink
On Tuesday 10 July 2018 13:37,
Post by Marcelo Laia
Post by Patrick Shanahan
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 ***@host:attachments/.
image/*; scp -q %s ***@host:attachments/.
audio/*; scp -q %s ***@host:attachments/.
video/*; scp -q %s ***@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 ***@host "qutebrowser \"$URL\""

--

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

.--. oo
(____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
Patrick Shanahan
2018-07-10 18:24:21 UTC
Permalink
Post by Marcelo Laia
Post by Patrick Shanahan
have you tried w3m?
need to enable graphics mode
Please, how is it possible? Enable graphics mode?
man w3m
look for "Display embedded graphics"

I use openSUSE Tumbleweed and there is a package, w3m-inline-image
Post by Marcelo Laia
I use lynx. Are there graphics mode for its, too?
you need to look, there is man, and google and help. and there is elinks
and links.
--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Loading...