🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #59289

Re: [SLRN] Customizing

#59289
From: Ralf Arens
Date: Fri, 17 Mar 2000 00:00
95 lines
3351 bytes
Sylvan Butler <nospam+_no_Zs__0003@hpb13799z.zboi.hpz.com.invalid> wrote:
> On Thu, 16 Mar 2000 01:19:24 +0100, Christian R Molls <CMolls@smail.uni-koeln.de> wrote:
>>I would prefer a one-window, cursor-driven solution with the following
>>key-bindings.
[...]

> You should be able to make slrn do that, but it gets a bit tricky...

Yep.

> I have mine set up mostly the mimic tin, with some vi thrown in.  :)
[...]

I'll add some macros to Sylvan's. They won't complete the task, but
maybe they'll help solving it. The first two were posted (I don't use
them myself but they helped me understanding slrn/slang for this
problem), the last three I wrote myself some time ago. (Since
Christian's mail address is from Germany I don't translate the german
comments.)

,----
| % Mit diesen Makros kann man im Group-Mode navigieren, aber sobald ein
| % Artikel angezeigt wird, wird dieser zeilenweise gescrollt
| define smart_up ()
| {
|    if (is_group_mode ())
|      error (_function_name () + " doesn't work in group mode!");
|
|    if (is_article_visible())
|      call("article_lineup");
|    else
|      call("up");
| }
|
| define smart_down()
| {
|    if (is_group_mode ())
|      error (_function_name () + " doesn't work in group mode!");
|
|    if (is_article_visible())
|      call("article_linedn");
|    else
|      call("down");
| }
|
| % Mit Pageup/down rauf/runterbl�ttern, falls Artikel gezeigt, diesen
| % rauf/runterbl�ttern
| define smart_pageup ()
| {
|     if (is_article_visible ())
|         call("scroll_up");
|     else
|         call("pageup");
| }
| definekey ("smart_pageup", "\e[5~", "article");
|
| define smart_pagedown ()
| {
|     if (is_article_visible ())
|         call("scroll_dn");
|     else
|         call("pagedn");
| }
| definekey ("smart_pagedown", "\e[6~", "article");
|
|
| % Cursor links / h / i: von Artikel zur Headeranzeige,
| % von dort zur Gruppenansicht
| define smart_cursleft ()
| {
|     if (is_article_visible ())
|         call("hide_article");
|     else
|         call("quit");
| }
| definekey ("smart_cursleft", "\e[D", "article");
| definekey ("smart_cursleft", "h", "article");
| definekey ("smart_cursleft", "i", "article");
`----

To view an article full screen, press "z", zoom. You should read also
read /usr/local/doc/slrn/slrnfuns.txt (or whereever you installed
slrn).


HTH,
Ralf

-- 
Progress (n.):
The process through which the Internet has evolved
from smart people in front of dumb terminals
to dumb people in front of smart terminals.

Technical Details
Message-ID: <ud4sa8.pf2.ln@ralf.dyndns.org>
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: <ca9pa8.62d.ln@molls.de> <slrn8d2ipe.40l.nospam+_no_Zs__0003@hpb13799z.zboi.hpz.com.invalid>

Show Full Headers
Complete Article Headers
Message-ID: <ud4sa8.pf2.ln@ralf.dyndns.org>
Subject: Re: [SLRN] Customizing
Date: Fri, 17 Mar 2000 00:00:00 +0000
From: ralf.arens@tu-clausthal.de (Ralf Arens)
References: <ca9pa8.62d.ln@molls.de> <slrn8d2ipe.40l.nospam+_no_Zs__0003@hpb13799z.zboi.hpz.com.invalid>
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: 598596444
Content-Transfer-Encoding: 8bit
Organization: Rechenzentrum der TU Clausthal
Content-Type: text/plain; charset=iso-8859-1
User-Agent: slrn/0.9.6.2 (Linux)
Mime-Version: 1.0
Newsgroups: news.software.readers