Re: brow.sh terminal html rendering integration?
* Marcelo Laia [07-10-18 12:38]: > A ter, 10/07/2018, 12:46, Patrick Shanahan escreveu: > > > > > 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 > 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.orgopenSUSE Community Memberfacebook/ptilopteri Registered Linux User #207535@ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Re: brow.sh terminal html rendering integration?
On Tuesday 10 July 2018 13:37, Marcelo Laia put forth the proposition: > A ter, 10/07/2018, 12:46, Patrick Shanahan 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@host:attachments/. image/*; scp -q %s user@host:attachments/. audio/*; scp -q %s user@host:attachments/. video/*; scp -q %s user@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@host "qutebrowser \"$URL\"" -- Linux: The OS people choose without $200,000,000 of persuasion. -- Mike Coleman .--. oo ()// ~'
Re: brow.sh terminal html rendering integration?
A ter, 10/07/2018, 12:46, Patrick Shanahan 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 >
Re: brow.sh terminal html rendering integration?
* Leho Kraav [07-10-18 09:00]: > On Tue, Jul 10, 2018 at 08:46:11AM -0400, hy...@lactose.homelinux.net wrote: > > Leho Kraav writes: > > >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.orgopenSUSE Community Memberfacebook/ptilopteri Registered Linux User #207535@ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Re: brow.sh terminal html rendering integration?
Leho Kraav writes: >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. --hymie! http://lactose.homelinux.net/~hymiehy...@lactose.homelinux.net
Re: brow.sh terminal html rendering integration?
On Tue, Jul 10, 2018 at 08:46:11AM -0400, hy...@lactose.homelinux.net wrote: > Leho Kraav writes: > >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.
Re: brow.sh terminal html rendering integration?
El día Tuesday, July 10, 2018 a las 12:12:44PM +, Georg Faerber escribió: > On 18-07-10 12:34:13, Matthias Apitz wrote: > > El día Tuesday, July 10, 2018 a las 01:04:15PM +0300, Leho Kraav escribió: > > > 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, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/ 📱 +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub
Re: brow.sh terminal html rendering integration?
On Tue, Jul 10, 2018 at 12:34:13PM +0200, Matthias Apitz wrote: > El día Tuesday, July 10, 2018 a las 01:04:15PM +0300, Leho Kraav escribió: > > > 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
Re: brow.sh terminal html rendering integration?
On 18-07-10 12:34:13, Matthias Apitz wrote: > El día Tuesday, July 10, 2018 a las 01:04:15PM +0300, Leho Kraav escribió: > > 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 signature.asc Description: Digital signature
Re: brow.sh terminal html rendering integration?
El día Tuesday, July 10, 2018 a las 01:04:15PM +0300, Leho Kraav escribió: > 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, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/ 📱 +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub
Re: brow.sh terminal html rendering integration?
* Patrick Shanahan [07-10-18 06:29]: > * Leho Kraav [07-10-18 06:10]: > > 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.orgopenSUSE Community Memberfacebook/ptilopteri Registered Linux User #207535@ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Re: brow.sh terminal html rendering integration?
* Leho Kraav [07-10-18 06:10]: > 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.orgopenSUSE Community Memberfacebook/ptilopteri Registered Linux User #207535@ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
brow.sh terminal html rendering integration?
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?