🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #152541

Re: [slrn] article list size

#152541
From: DC
Date: Wed, 28 Jul 2004 19:41
56 lines
2778 bytes
Bo Grimes wrote:
> Just started playing around with slrn.  I have very little experience with
> console newsreaders and editors, and while I have tried to figure this one
> out on my own, I see nothing in slrnrc that gives me a clue.

> After entering a group and then reading an article, I want the separator
> between the article headers and the article I'm reading to be lower down;
> that is, I want to be able to see more articles.

> I have figured out I can press h and go back to just the article list, but
> still, I would rather be able to see more articles listed at one time while
> reading an article.

> Any help would be appreciated.  TIA


[source: google groups search on "art-size.sl"]


I use a macro for this:

Save the following as art-size.sl and place in your slrn macros
directory:

#v+
% Redefines header_window size.
      % Change int number for better suiting your needs.
%      define resize_screen_hook ()
%      {
%              set_article_window_size (SCREEN_HEIGHT - 18);
%      }

        define set_size_of_article_pager ()
  {
     set_article_window_size (int(SCREEN_HEIGHT*0.65));
  }
  !if (register_hook ("resize_screen_hook", "set_size_of_article_pager"))
    message ("Warning: Could not register set_size_of_article_pager" +
             " for resize_screen_hook");
#v-


Add an interpret line to your ~/.slrnrc to call the macro:

#v+
% Redefines header_window size.
interpret art-size.sl
#v-


HTH

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Technical Details
Message-ID: <slrncgg0bm.4cl.dcmoose@moosemeat.ca.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed2.newsreader.com!newsreader.com!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!not-for-mail
References: <TXRNc.825$Jp6.711@newsread3.news.atl.earthlink.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrncgg0bm.4cl.dcmoose@moosemeat.ca.INVALID>
Subject: Re: [slrn] article list size
Date: Wed, 28 Jul 2004 19:41:43 +0000
From: DC <dcmoose@myrealbox.com>
References: <TXRNc.825$Jp6.711@newsread3.news.atl.earthlink.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed2.newsreader.com!newsreader.com!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: http://dcicons.fateback.com
Lines: 56
X-Trace: news.uni-berlin.de mqIsQrdlw3/cKBWY7S756gCMuq2Wi/MluJgIkscAFZTHzz4KX5
X-Operating-System: Mandrake Linux 10.0 (Kernel 2.6.3-7mdk)
X-Face: 6k$Xf_V^i#2X;
 X~[=Ra6mGRtOw!^s%HmaNj1y5a>YCL"vEl.Jjbkww,E~kI&f[*w{j:$V6a2:LKbWg@+qt)3x"fqU\H_Fy5tk8h[Iq/XW~okpDvCa\E~!fb]{H4j@CxE<vL?4q9cxiK5;
 ZdpI@,Bk)(\e67mAw; L}WCZ/NYSX|R6Jj{omL6KT/$
User-Agent: slrn/0.9.8.0 (Linux)