🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Ed Jezak Thu, 03 Jun 1999 00:00
slrn and URL extraction
#49056
Author: Ed Jezak
Date: Thu, 03 Jun 1999 00:00
16 lines
1150 bytes
I am beginning to use slrn on a W95 system, in a dos window.  I should like
to be able to extract easily an URL in a post, so that I can use it in
Netscape (without having to remember and type the address).  
I find slrn much quicker than Netscape for reading, but I have not yet
learned how to facilitate the tasks of:
  1) going to a web site
  2) saving an article (possible problem with naming? DOS won't accept
"news.software.readers" for a file name?)
  3) printing an article.
  
I use jed as my editor.
Should appreciate pointers from anyone who has dealt with any of these.
-- 
Ed Jezak

Re: slrn and URL extraction
#49061
Author: Frank Hahn
Date: Fri, 04 Jun 1999 00:00
60 lines
3030 bytes
On 3 Jun 1999 13:26:33 -0500, Ed Jezak <jezak@rmc.ca> wrote:
>I am beginning to use slrn on a W95 system, in a dos window.  I should like
>to be able to extract easily an URL in a post, so that I can use it in
>Netscape (without having to remember and type the address).  
>I find slrn much quicker than Netscape for reading, but I have not yet
>learned how to facilitate the tasks of:
>  1) going to a web site
>
I don't know what your .slrnrc file looks like, but in my copy,
there is the following section.

==========From .slrnrc===================================================
% WWW browser to use.  The 'U' key in article mode searches the current article
% for a URL and then calls X browser if slrn appears to be run in X windows
% and non_Xbrowser otherwise.  Note: The second Xbrowser form assumes that
% netscape is already running.
%set non_Xbrowser "lynx '%s'"
%set Xbrowser "netscape '%s' &"
set Xbrowser            "netscape -remote 'openURL(%s)' &"
==========From .slrnrc===================================================

Try modifying the above.  You may have to use a complete path to
your Netscape binary file.  You may also need to mess with either
the forward slashes or back slashes to get it to work properly.

You should then be able to use the "Shift-G" key and slrn should
give you a choice of the URL's in the message to choose from
and then have Netscape use that address.

I would think this works on the MS Windows version of slrn but can't
check right now.


>  2) saving an article (possible problem with naming? DOS won't accept
>"news.software.readers" for a file name?)
>
I'm assuming you are using the "o" key to bring up the command line
to save a file.  If so, just rename it to something MS Windows likes.


>  3) printing an article.
>
Not sure.

There is a web page that I believe is devoted to setting up slrn
on a MS Windows system.  The last address I had was:

http://thingy.apana.org.au/~fun/slrn/

See what this web site has.  Especially the problem with the slashes
in path statements.

-- 
Frank Hahn

"I was playing poker the other night ... with Tarot cards. I got a full
house and four people died."
		-- Steven Wright

Re: slrn and URL extraction
#49127
Author: Renaud Colinet
Date: Mon, 07 Jun 1999 00:00
22 lines
1675 bytes
On 7 Jun 99 16:20:34 GMT, Peppe wrote:
>Iirc, the windows version of netscape does not support the -remote
>option, so you would get to launch a new instance of netscape for
>every url. Not sure though. One could paste the url, but it is not the
>best of solutions.
Actually, it does support this option, but that supposes that netscape is
already running, otherwise you get an error message:
set Xbrowser            "/usr/local/bin/netscape -remote 'openURL(%s)' &"
works OK
set Xbrowser "/usr/local/bin/netscape3 '%s' &" will start a new netscape
window, even if there is an open one.
If anyone knew how to get slrn to test whether there is an active netscape
session and set the Xbrowser variable accordingly, that'd be fine.

-- 
  ___
{~._.~}    Renaud COLINET       |
 ( Y )     colinet@ensta.fr     |
()~*~()    01 48 42 22 80 (dom) |
(_)-(_)    01 41 75 31 37 (bur) |

Re: slrn and URL extraction
#49128
Author: Peppe
Date: Mon, 07 Jun 1999 00:00
23 lines
1840 bytes
Thus wrote Ed Jezak <jezak@rmc.ca>
> I am beginning to use slrn on a W95 system, in a dos window.  I should like
> to be able to extract easily an URL in a post, so that I can use it in
> Netscape (without having to remember and type the address).  

To extract urls from an article use "U". This will present a list of
urls to you in a box (or on the lat line if there is jst one). Usually
you would jst hit return to launch a browser set by either
non_Xbrowser or Xbrowser in your slrnrc.

Iirc, the windows version of netscape does not support the -remote
option, so you would get to launch a new instance of netscape for
every url. Not sure though. One could paste the url, but it is not the
best of solutions.

Peppe
-- 
Preben Guldberg          __/-\__      "Three things matter in a speech: who
c928400@student.dtu.dk    (o o)        says it, how he says it, and what he
----------------------oOOo (_) oOOo    says - and, of the three, the last
http://www.student.dtu.dk/~c928400/    matters the least."    --John Morley

Re: slrn and URL extraction
#49129
Author: Renaud Colinet
Date: Tue, 08 Jun 1999 00:00
23 lines
1772 bytes
Le Tue, 08 Jun 1999 10:42:18 GMT, Stephen Chadfield a ecrit:
>Renaud Colinet <colinet@beige3.ensta.fr> wrote:
>>On 7 Jun 99 16:20:34 GMT, Peppe wrote:
>>>Iirc, the windows version of netscape does not support the -remote
>>>option, so you would get to launch a new instance of netscape for
>>>every url. Not sure though. One could paste the url, but it is not the
>>>best of solutions.
>>Actually, it does support this option, but that supposes that netscape is
>>already running, otherwise you get an error message:
>>set Xbrowser            "/usr/local/bin/netscape -remote 'openURL(%s)' &"
>>works OK
>
>With the *Windows* version of Netscape? I think not.
>
oops, sorry, I read too fast. I was of course referring to the Unix version.
-- 
  ___
{~._.~}    Renaud COLINET       |
 ( Y )     colinet@ensta.fr     |
()~*~()    01 48 42 22 80 (dom) |
(_)-(_)    01 41 75 31 37 (bur) |

Re: slrn and URL extraction
#49130
Author: Andreas Kurth
Date: Tue, 08 Jun 1999 00:00
24 lines
1324 bytes
Renaud Colinet wrote:
> If anyone knew how to get slrn to test whether there is an active netscape
> session and set the Xbrowser variable accordingly, that'd be fine.

Write a little shell-script:
set Xbrowser "/usr/local/bin/netscape_for_slrn"

--------------- cut -------------
#!/usr/bin/zsh
# netscape_for_slrn

netscape=/usr/local/bin/netscape
$netscape -geometry 890x830+165+2 -remote openurl\($1,new-window\) 
if [[ $? != 0 ]]; then
  $netscape -geometry 890x830+165+2 $1 &
fi  
--------------- cut -------------



-- 
Andreas Kurth    Mannheim, Germany

Re: slrn and URL extraction
#49145
Author: Steve Martin
Date: Tue, 08 Jun 1999 00:00
46 lines
2465 bytes
On 3 Jun 1999 13:26:33 -0500, Ed Jezak <jezak@rmc.ca> wrote:
>I am beginning to use slrn on a W95 system, in a dos window.  I should like
>to be able to extract easily an URL in a post, so that I can use it in
>Netscape (without having to remember and type the address).  
>I find slrn much quicker than Netscape for reading, but I have not yet
>learned how to facilitate the tasks of:

>  1) going to a web site

I sussed it in the end.  I was thinking that slrn was thinking it
was the Xbrowser ('cos it was windoze) - but of course it's
a console app- so it's not. Take your pick :-

% lynx 
%set non_Xbrowser "lynx '%s'"

% nc4
%set non_Xbrowser "c:\\bin\\nn4\\program\\netscape.exe -browser %s"

% nn3
set non_Xbrowser "c:\\bin\\nn3\\program\\netscape.exe %s"

I opted for the '\\' approach, since I think command.com or spawn()
is disliking the '/'s.   {have yet to check the src to see what
it's using - am attempting a build under MSVC5 at present - anyone
else done it / interested?}.

Also I think you're better using the short (alised) path version
(the one with the '~'s in it) instead of one with spaces in the
directory names - so not "c:\\Program Files" - use "C:\progra~1\".


>  2) saving an article (possible problem with naming? DOS won't accept
>"news.software.readers" for a file name?)

I don't think I'm having this problem.  You can modify the
path/filename that it offers you and see if it takes it.

------
Steve
----------------------------------------------------
My email adr is steve at sjm d dot freeuk dot com
else remove the beans from the spam before replying
----------------------------------------------------

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