🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #30811

Re: slrn calling web browser

#30811
From: Mike Mckinney
Date: Wed, 05 Feb 1997 00:00
51 lines
1707 bytes
	This works fine...Thanks very much for helping me out on
	this, and I'm sure others will appreciate it to. This is
	exactly what I was hoping slrn would do, it appears to work
	perfectly.

	Take care.

					mike@bga.com



>Try something like this in your .slrn.sl.  It's nothing fancy, but it should
>work.
>
>define call_browser ()
>{
>   variable Null_String = ""; 
>   variable cmd = Null_String;
>   variable browser = "lynx";
>   variable url = read_mini ("give an URL", Null_String, Null_String);
>   if (strlen (url)) 
>     {
>	cmd = Sprintf ("%s %s", browser, url, 2);
>	() = system (cmd);
>     }
>}
>   
>define browse ()
>{
>   ERROR_BLOCK 
>     {
>	_clear_error ();
>	call_browser ();
>     }
>   call ("browse_url");
>}
>
>definekey ("browse", "U", "article");
>
>You can shorten the call_browser function considerably, I just wanted it to
>be easier to read.
>
>lahvak
>-- 
>Jan Hlav\'{a}\v{c}ek
>lahvak@math.ohio-state.edu
>www: home page knocked down for major reconstruction
>

Technical Details
Message-ID: <slrn5fh9un.6sg.mike@apm0-52.realtime.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn5ff1ar.5ln.mike@apm5-182.realtime.net> <slrn5fgfa3.e5o.lahvak@math.mps.ohio-state.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5fh9un.6sg.mike@apm0-52.realtime.net>
Subject: Re: slrn calling web browser
Date: Wed, 05 Feb 1997 00:00:00 +0000
From: mike@bga.com (Mike Mckinney)
References: <slrn5ff1ar.5ln.mike@apm5-182.realtime.net> <slrn5fgfa3.e5o.lahvak@math.mps.ohio-state.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 214627127
X-rtcode: 9f5e8d2c32f54f2a88f8a72b
Organization: Realtime
Reply-to: mike@bga.com
Newsgroups: news.software.readers