🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Rob Funk Fri, 02 Jan 1998 00:00
Re: SLRN macro
#37847
Author: Rob Funk
Date: Fri, 02 Jan 1998 00:00
45 lines
2039 bytes
Gossamer <gossamer+usenet@tertius.net.au> wrote:
>I'm trying to match up the keystrokes in my SLRN and Mutt
>because they look so alike my fingers keep getting confused :)

Me too, though I also add elements of trn (and elm).

>One of the things I need is a macro I can bind to lowercase q
>in article mode - if there's an article currently being shown
>then it should just hide article and stay in article mode,
>if there's no article being shown, it should -then- revert
>back to group mode.

I've just started with slrn macros, but having just fixed
pageup/pagedown to call scroll_up/dn or pageup/dn depending on whether
the article is visible, this one's easy:

define quit_or_hide_article ()
{
    if (is_article_visible()) {
	call ("hide_article");
    } else {
	call ("quit");
    }
}
definekey("quit_or_hide_article", "q", "article");

I also do this:

define really_hide_article ()
{
    % hide_article shouldn't be a toggle IMHO, but it is...
    if (is_article_visible()) {
	call ("hide_article");
    }
}
definekey("really_hide_article", "i", "article");

-- 
=========== R o b  F u n k ===========|===========> funk+@osu.edu <===========
 "Why are you here?  Snap out of it.  |   rfunk@peri.acs.ohio-state.edu
  Wake up.  It's all illusions."      |   rfunk@marvin.uts.ohio-state.edu
 "I LIKE THE MOVIE"  -- Richard Bach  |http://er4www.eng.ohio-state.edu/~funkr

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