LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 07: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, 09:46 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 08: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, 03: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, 04:55 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
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 05:04 PM.
 
Old 04-03-2007, 08: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, 09:13 PM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Have a look at using elinks. It is a bit more advanced than plain links.
 
Old 04-04-2007, 07: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 07:20 PM
Wrote a 100% w3c-compliant website - why won't it show up in IE, Links, Lynx? iceportal Programming 9 09-28-2006 10:50 PM
Links/Lynx Browser - Fonts Question rvijay Linux - Software 1 08-09-2005 04:01 AM
links, lynx, w3m?? numb Slackware 18 04-06-2005 07:07 AM
Unable to get on line using pppd and lynx or links bhooder Linux - Newbie 1 02-25-2004 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration