🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Kees de Koster Mon, 06 Nov 2006 20:04
Slrn - bind F1 to view manual
#192389
Author: Kees de Koster
Date: Mon, 06 Nov 2006 20:04
24 lines
1550 bytes
Hello,

I can't get slrn to bind the F1 to view the manual, now i have a
my_hooks.sl file with the below

#v+
define view_manual ()
{
   call ("zless /usr/share/doc/slrn/manual.txt.gz");
}
definekey ("view_manual", "<F1>", "article");
definekey ("view_manual", "<F1>", "group");
#v-

If i substitute "call" with pipe_article then it works in article mode
but that's not the correct method.

I can't find it in the manuals so maybe somebody can help me out with
this.

Kees
-- 
Yow!  I want my nose in lights!
Ubuntu, linux for human beings http://www.ubuntu.com
Re: Slrn - bind F1 to view manual
#192391
Author: Troy Piggins
Date: Mon, 06 Nov 2006 21:13
25 lines
1802 bytes
* Kees de Koster wrote:
> Hello,
>
> I can't get slrn to bind the F1 to view the manual, now i have a
> my_hooks.sl file with the below
>
> #v+
> define view_manual ()
> {
>    call ("zless /usr/share/doc/slrn/manual.txt.gz");
> }
> definekey ("view_manual", "<F1>", "article");
> definekey ("view_manual", "<F1>", "group");
> #v-
>
> If i substitute "call" with pipe_article then it works in article mode
> but that's not the correct method.

Use "system" instead of "call".

-- 
Troy Piggins
 ,-o  email address works for a limited time only
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 07:13:11 up 34 days,8 min,2 users,load average:0.03,0.04,0.01
Re: Slrn - bind F1 to view manual
#192394
Author: Kees de Koster
Date: Mon, 06 Nov 2006 22:56
29 lines
1798 bytes
In article <20061107071312@usenet.piggo.com>, Troy Piggins wrote:
> * Kees de Koster wrote:
>> Hello,
>>
>> I can't get slrn to bind the F1 to view the manual, now i have a
>> my_hooks.sl file with the below
>>
>> #v+
>> define view_manual ()
>> {
>>    call ("zless /usr/share/doc/slrn/manual.txt.gz");
>> }
>> definekey ("view_manual", "<F1>", "article");
>> definekey ("view_manual", "<F1>", "group");
>> #v-
>>
>> If i substitute "call" with pipe_article then it works in article mode
>> but that's not the correct method.
>
> Use "system" instead of "call".
>

Thanks, works perfect :-)

Kees
-- 
If I cannot bend Heaven, I shall move Hell.
		-- Publius Vergilius Maro (Virgil)
Ubuntu, linux for human beings http://www.ubuntu.com
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