🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Stefan `Sec` Zehl Thu, 16 Apr 1998 00:00
slrn: macros
#40190
Author: Stefan `Sec` Zehl
Date: Thu, 16 Apr 1998 00:00
20 lines
998 bytes
I'm trying to setup slrn and have to keybinding questions.

I want to make ^B to behave like |urlview\n beeing pressed. I.e. simple
macro capability.

And, I want to rebind 'q' so that it hides the article window if shown,
and acts normally otherwise. Anyway to do this ?

(setkey article  hide_article    "q" % dosn't do what i want)

(If this is in a faq which i missed, feel free to flame, but please
include a pointer then.)

CU,
    Sec
-- 
stop reading here

Re: slrn: macros
#40185
Author: Jan Hlavacek
Date: Thu, 16 Apr 1998 00:00
40 lines
1805 bytes
On 16 Apr 1998 18:17:04 GMT, Stefan `Sec` Zehl <sec@require-re.42.org>
wrote:
> I'm trying to setup slrn and have to keybinding questions.
> 
> I want to make ^B to behave like |urlview\n beeing pressed. I.e. simple
> macro capability.

define pipe_to_urlview ()
{
   pipe_article ("urlview");
}
definekey ("pipe_to_urlview", "^B", "article");

> And, I want to rebind 'q' so that it hides the article window if shown,
> and acts normally otherwise. Anyway to do this ?

define hide_art_or_quit ()
{
   if (is_group_mode ()) return;  % just to make sure.
   if (is_article_visible ()) call ("hide_article");
   else call ("quit");
}
definekey ("hide_art_or_quit", "q", "article");
   
The above goes into a file called .slrn.sl in your home directory.
Then you need to include the following line in your .slrnrc:

interpret ".slrn.sl"

Good luck.

lahvak
-- 
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

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