🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #55038

Re: SLRN - minor scrolling oddity/bug/feature

#55038
From: Stephane Gibier
Date: Thu, 09 Dec 1999 00:00
80 lines
3396 bytes
I have defined several macros to scroll down/up articles and headers
with the same keys on different contexts. The main problem is that slrn
does not separate header and article mode. This is a well-known feature
submited to Sven's whislist.

The following macros will be able to scroll article body with arrow
keys. When the headers are displayed (H key by default), you can move
the current header with the same keys.

% SmartUp : [Up arrow]
define article_smartup()
{
   if( is_article_visible()  )
      call( "article_lineup" );
   else
      call( "up" );
}
definekey( "article_smartup", "\e[A", "article" );

% SmartDown : [Down arrow]
define article_smartdn()
{
   if( is_article_visible() )
      call( "article_linedn" );
   else
      call( "down" );
}
definekey( "article_smartdn", "\e[B", "article" );

% SmartPageUp : [PageUp arrow]
define article_smartpgup()
{
   if( is_article_visible() )
      call( "article_pageup" );
   else
      call( "pageup" );
}
definekey( "article_smartpgup", "\e[5~", "article" );

% SmartPageDown : [PageDown arrow]
define article_smartpgdn()
{
   if( is_article_visible() )
      call( "article_pagedn" );
   else
      call( "pagedn" );
}
definekey( "article_smartpgdn", "\e[6~", "article" );

% SmartHome : [Home key]
define article_smartbob()
{
   if( is_article_visible() )
      call( "article_bob" );
   else
      call( "header_bob" );
}
definekey( "article_smartbob", "\e[1~", "article" );
definekey( "article_smartbob", "\e[7~", "article" );

% SmartEnd : [End Key]
define article_smarteob()
{
   if( is_article_visible() )
      call( "article_eob" );
   else
      call( "header_eob" );
}
definekey( "article_smarteob", "\e[4~", "article" );
definekey( "article_smarteob", "\e[8~", "article" );

Note: all keys are PC (sort of VT220) compatible, so adjust them on your
VT configuration.

-- 
St�phane Gibier <sgibier@mail.dotcom.fr>
Le rabbin r�servait au s�nateur une belle collection de piques
Yr enoova e�freinvg nh f�pngrhe har oryyr pbyyrpgvba qr cvarf 

Technical Details
Message-ID: <slrn850690.cv.sgibier@hermes.olympus.fr>
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: <slrn847vtl.e03.cgreen@shell.x-1.net> <slrn84atjf.nq7.bluemoon@ux6.cso.uiuc.edu> <slrn84d5t3.lns.cgreen@shell.x-1.net> <slrn84dpsa.7fh.bluemoon@ux6.cso.uiuc.edu> <slrn84fhm9.osf.cgreen@shell.x-1.net> <slrn84gau1.5q3.bluemoon@ux6.cso.uiuc.edu> <slrn84n652.8qh.cgreen@shell.x-1.net> <slrn84o3vd.qo0.bluemoon@ux6.cso.uiuc.edu> <slrn84obh8.dam.cgreen@shell.x-1.net> <slrn84qlat.ojl.bluemoon@ux6.cso.uiuc.edu> <slrn84satm.j2i.cgreen@shell.x-1.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn850690.cv.sgibier@hermes.olympus.fr>
Subject: Re: SLRN - minor scrolling oddity/bug/feature
Date: Thu, 09 Dec 1999 00:00:00 +0000
From: sgibier@mail.dotcom.fr (Stephane Gibier)
References: <slrn847vtl.e03.cgreen@shell.x-1.net> <slrn84atjf.nq7.bluemoon@ux6.cso.uiuc.edu> <slrn84d5t3.lns.cgreen@shell.x-1.net> <slrn84dpsa.7fh.bluemoon@ux6.cso.uiuc.edu> <slrn84fhm9.osf.cgreen@shell.x-1.net> <slrn84gau1.5q3.bluemoon@ux6.cso.uiuc.edu> <slrn84n652.8qh.cgreen@shell.x-1.net> <slrn84o3vd.qo0.bluemoon@ux6.cso.uiuc.edu> <slrn84obh8.dam.cgreen@shell.x-1.net> <slrn84qlat.ojl.bluemoon@ux6.cso.uiuc.edu> <slrn84satm.j2i.cgreen@shell.x-1.net>
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: 558840098
Content-Transfer-Encoding: 8bit
Mail-Copies-To: nobody
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@wanadoo.fr
X-Trace: wanadoo.fr 944795066 13194 164.138.61.176 (10 Dec 1999 03:04:26 GMT)
Organization: Olympus
User-Agent: slrn/0.9.5.7 (UNIX)
Mime-Version: 1.0
NNTP-Posting-Date: 10 Dec 1999 03:04:26 GMT
Newsgroups: news.software.readers