LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-29-2007, 06:59 PM   #1
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Printing from Links & Lynx


Hello,

Can someone explain how I can enable printing from the Links browser and the Lynx browser?
 
Old 03-29-2007, 08:46 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,772

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Point your browser at this file:
file:///usr/share/doc/packages/lynx/lynx_help/Lynx_users_guide.html

At least, that's where to find it on my system. It might be in a different location on yours. At any rate, it gives you an idea of what to look for. There is a section on printing.
 
Old 03-31-2007, 07:56 PM   #3
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

O.K. I got Lynx figured out. How about Links? I tried using 'p' as well, but it doesn't work.
 
Old 04-02-2007, 02:19 PM   #4
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Please, any advice on how to print in Links.
 
Old 04-02-2007, 03:55 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
I had a look into this with elinks which I think is pretty much identical to links. I didn't find any option to print at all.

All I can suggest is to use the -dump switch and pipe to lpr or lp. I haven't tested at all but try something like:

links -dump -no-references http://www/domain.com/page.html | lp


*edit:

I've just looked at keybindings and realize that I have a bind set up to print.

In Setup - Document - URI passing I have a 'print' option like so 'printhtml %c'
printhtml is basically a script (in my PATH) that does as above:

Code:
#!/bin/bash
elinks -no-references -dump "$@" | lp 2>/dev/null 1>&2
Then put in the keybind options the key combo to use for URI passing.
You can have more than one URI passing options setup - I have one for print and one for print with references.

Last edited by dive; 04-02-2007 at 04:04 PM.
 
Old 04-03-2007, 07:18 PM   #6
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Quote:
Originally Posted by dive
I had a look into this with elinks which I think is pretty much identical to links. I didn't find any option to print at all.

All I can suggest is to use the -dump switch and pipe to lpr or lp. I haven't tested at all but try something like:

links -dump -no-references http://www/domain.com/page.html | lp


*edit:

I've just looked at keybindings and realize that I have a bind set up to print.

In Setup - Document - URI passing I have a 'print' option like so 'printhtml %c'
printhtml is basically a script (in my PATH) that does as above:

Code:
#!/bin/bash
elinks -no-references -dump "$@" | lp 2>/dev/null 1>&2
Then put in the keybind options the key combo to use for URI passing.
You can have more than one URI passing options setup - I have one for print and one for print with references.
I checked and that is not something that Links provides. It doesn't have the Setup --> Document. It could be that the keybinding could be done anyway, but I don't know how to do that. Thanks for your help, though.
 
Old 04-03-2007, 08:13 PM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
Have a look at using elinks. It is a bit more advanced than plain links.
 
Old 04-04-2007, 06:37 PM   #8
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Quote:
Originally Posted by dive
Have a look at using elinks. It is a bit more advanced than plain links.
I am using Links-2 which among its many improvements over the original links, is the one I like the most - a graphical mode. If I want to use plain text mode, I'll use lynx.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing html page to pdf with links MikeyCarter Linux - Software 1 11-16-2006 06:20 PM
Wrote a 100% w3c-compliant website - why won't it show up in IE, Links, Lynx? iceportal Programming 9 09-28-2006 09:50 PM
Links/Lynx Browser - Fonts Question rvijay Linux - Software 1 08-09-2005 03:01 AM
links, lynx, w3m?? numb Slackware 18 04-06-2005 06:07 AM
Unable to get on line using pppd and lynx or links bhooder Linux - Newbie 1 02-25-2004 10:30 PM


All times are GMT -5. The time now is 11:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration