🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
5 messages
5 total messages Started by Arthur Tue, 21 Aug 2001 11:42
urliew with nn?
#9848
Author: Arthur
Date: Tue, 21 Aug 2001 11:42
9 lines
1193 bytes
My newsreader of choice for the past several years has been slrn. Lately
I have been looking into nn and trn, trying to decide between the two. 

One question I have is whether it is possible to have nn invoke urlview
on posts that have url's in them as one can do with slrn?

Thanks

Re: urliew with nn?
#9850
Author: those who know me have no need o...
Date: Tue, 21 Aug 2001 13:45
11 lines
1023 bytes
<9lthfe$btf$1@panix1.panix.com> divulged:

>One question I have is whether it is possible to have nn invoke urlview
>on posts that have url's in them as one can do with slrn?

naturally, urlview just parses the data presented on it's stdin, so
worst case you can pipe to it.

-- 
okay, have a sig then
Re: urliew with nn?
#9846
Author: Tim Skirvin
Date: Tue, 21 Aug 2001 14:57
39 lines
2018 bytes
aalinovi@panix.com (Arthur) writes:

>One question I have is whether it is possible to have nn invoke urlview
>on posts that have url's in them as one can do with slrn?

	In your .nn/init:

map show ^B (
:!! cat /dev/null > /tmp/junk$(USER)
save-full "//tmp/junk$(USER)
:! echo; urlview < /tmp/junk$(USER); rm /tmp/junk$(USER)
:redraw
)

	Oh, and if you want it to catch multi-line URLs, have it invoke
this instead:

#!/usr/local/bin/perl
# Updated urlview - eliminates newlines and their associated whitespace
# Written by Tim Skirvin <tskirvin@killfile.org>, Fri Aug 10 15:39:26 CDT
# 2001

open(URLVIEW, "| /usr/local/bin/urlview");

while (<STDIN>) {
  print URLVIEW $_;
  $buf .= $_;
}
$buf =~ s/\s*\n\s*//g;

print URLVIEW $buf;

close(URLVIEW);

			    - Tim Skirvin (tskirvin@killfile.org)
-- 
<URL:http://www.killfile.org/~tskirvin/> Skirv's Homepage <FISH><
<URL:http://www.killfile.org/dungeon/>	The Killfile Dungeon  <*>
Re: urliew with nn?
#9851
Author: Sascha Geschwandtner
Date: Thu, 30 Aug 2001 20:33
22 lines
1529 bytes
tskirvin@killfile.org (Tim Skirvin) writes:

>	In your .nn/init:
>
>map show ^B (
>:!! cat /dev/null > /tmp/junk$(USER)
>save-full "//tmp/junk$(USER)
>:! echo; urlview < /tmp/junk$(USER); rm /tmp/junk$(USER)
>:redraw
>)

This seems to be rather complicated.
Read the fine FAQ :-) for a shorter example, namely nn-use-lynx.
I shortened yours to

map show ^B (
	save-full "| urlview"
)

BTW: I regard it as a Good Thing not to use publicly accessible
tmp directories, so I have $HOME/.tmp.
Re: urliew with nn?
#9852
Author: Tim Skirvin
Date: Fri, 31 Aug 2001 13:40
32 lines
1751 bytes
sam@s.netic.de (Sascha Geschwandtner) writes:

>>	In your .nn/init:
>>map show ^B (
>>:!! cat /dev/null > /tmp/junk$(USER)
>>save-full "//tmp/junk$(USER)
>>:! echo; urlview < /tmp/junk$(USER); rm /tmp/junk$(USER)
>>:redraw
>>)
>This seems to be rather complicated.

	That's what I get for keeping macros like this for 5+ years, I
guess.  

>map show ^B (
>	save-full "| urlview"
>)

	Make that:

map show ^B (
        save-full "| urlview"
        :redraw
)

	The redraw's nice.

			    - Tim Skirvin (tskirvin@ks.uiuc.edu)
-- 
Theoretical Biophysics@UIUC <URL:http://www.ks.uiuc.edu/~tskirvin/>  
   System Administrator      ph#: 217/244-1855   fax: 217/244-6078
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads