🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by Mike Mckinney Tue, 04 Feb 1997 00:00
slrn calling web browser
#30753
Author: Mike Mckinney
Date: Tue, 04 Feb 1997 00:00
15 lines
879 bytes
	
	When using shift U to jump to web sites in slrn, would it
	be possible to get slrn to prompt for an address if it can't
	find one in the current article ?
	Often times there is a web address in the article, but it's not
	written in a format that slrn recognizes as a valid web address.



						mike@bga.com

	

Re: slrn calling web browser
#30809
Author: Jan Hlavacek
Date: Wed, 05 Feb 1997 00:00
49 lines
1764 bytes
On 4 Feb 1997 18:52:41 GMT, Mike Mckinney <mike@bga.com> wrote:
>	
>	When using shift U to jump to web sites in slrn, would it
>	be possible to get slrn to prompt for an address if it can't
>	find one in the current article ?
>	Often times there is a web address in the article, but it's not
>	written in a format that slrn recognizes as a valid web address.
>

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


Re: slrn calling web browser
#30811
Author: 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
>

Re: slrn calling web browser
#30845
Author: Sandy Herring
Date: Thu, 06 Feb 1997 00:00
23 lines
1409 bytes
On 5 Feb 1997 07:56:51 GMT, Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote:
>On 4 Feb 1997 18:52:41 GMT, Mike Mckinney <mike@bga.com> wrote:
>>	
>>	When using shift U to jump to web sites in slrn, would it
>>	be possible to get slrn to prompt for an address if it can't
>>	find one in the current article ?
[snip]
>Try something like this in your .slrn.sl.  It's nothing fancy, but it should
>work.
>
>define call_browser ()
[chomp]

Or simply suspend your slrn session via ^Z, do your lynx thing,
and then put slrn back in the foreground with `fg`.

Sandy
-- 
Sandy Herring                  Portland         Peck of Pickled Pisces
sandy@herring.org               Oregon          http://www.herring.org/

Re: slrn calling web browser
#30872
Author: Mike Mckinney
Date: Thu, 06 Feb 1997 00:00
38 lines
2042 bytes
On 6 Feb 1997 02:21:33 GMT, Sandy Herring <sandy@herring.org> wrote:
>On 5 Feb 1997 07:56:51 GMT, Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote:
>>On 4 Feb 1997 18:52:41 GMT, Mike Mckinney <mike@bga.com> wrote:
>>>	
>>>	When using shift U to jump to web sites in slrn, would it
>>>	be possible to get slrn to prompt for an address if it can't
>>>	find one in the current article ?
>[snip]
>>Try something like this in your .slrn.sl.  It's nothing fancy, but it should
>>work.
>>
>>define call_browser ()
>[chomp]
>
>Or simply suspend your slrn session via ^Z, do your lynx thing,
>and then put slrn back in the foreground with `fg`.
>
>Sandy
>-- 
>Sandy Herring                  Portland         Peck of Pickled Pisces
>sandy@herring.org               Oregon          http://www.herring.org/


	Yes, you could do it that way, except that the URL that I 
	want to go to is listed in the news program that I just
	suspended, and can no longer see. While this probably would'nt
	be a problem with a short & simple URL, it would be a pain for
	some of the longer ones...The thing to remember is that the 
	option was put into slrn for convenience, and by adding the
	option of having slrn prompt for a URL when it can't find one
	automatically, you just increase the convenience.


						mike@bga.com


Re: slrn calling web browser
#30881
Author: David Mears
Date: Thu, 06 Feb 1997 00:00
21 lines
1260 bytes
On 4 Feb 1997 18:52:41 GMT, Mike Mckinney <mike@bga.com> wrote:

>	When using shift U to jump to web sites in slrn, would it
>	be possible to get slrn to prompt for an address if it can't
>	find one in the current article ?

>	Often times there is a web address in the article, but it's not
>	written in a format that slrn recognizes as a valid web address.

What would be really useful would be to add a new type (url) to the
list of things that can be specified in the `color' directives.  (And
in `mono' as well, I suppose.)  This way, any URLs could be made to
stand out visually.

David B. Mears
Hewlett-Packard
Cupertino CA
mears@cup.hp.com

Re: slrn calling web browser
#30954
Author: Marc Roger
Date: Sat, 08 Feb 1997 00:00
14 lines
1123 bytes
On 6 Feb 1997 17:05:41 GMT, in news:<slrn5fk3r5.roo.mears@xsvr2.cup.hp.com>,
David Mears <mears@xsvr2.cup.hp.com> wrote in news.software.readers:
>What would be really useful would be to add a new type (url) to the
>list of things that can be specified in the `color' directives.  (And
>in `mono' as well, I suppose.)  This way, any URLs could be made to
>stand out visually.

and why not making URLs clickable ?

-- 
Marc Roger

Re: slrn calling web browser
#30988
Author: Marc Roger
Date: Sun, 09 Feb 1997 00:00
16 lines
1280 bytes
On 8 Feb 1997 22:04:12 GMT, in news:<slrn5fpu1o.e5t.jcostom@dogbert.sjis.com>,
Jason Costomiris <jcostom@shaft.sjis.com> wrote in news.software.readers:
>: and why not making URLs clickable ?

>How would you propose I click on a vt220?

That would be when a mouse is present. 
There could also be a keyboard-based URL selection inside the article, with 
keys to skip the the next or previous URL, and a key to select the current 
one and hand it to the browser (some kind of improved U).

-- 
Marc Roger

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