Article View: news.software.readers
Article #165614Re: setting the size of the article pager on startup
From: Andrew Preater
Date: Wed, 20 Apr 2005 08:14
Date: Wed, 20 Apr 2005 08:14
28 lines
1884 bytes
1884 bytes
* claus <claus@claus.com>:
> How do I setup slrn to have a default article pager larger then
> the default?
Here's what I use, change the number to your taste:
#v+
define resize_screen_hook ()
{
set_article_window_size (SCREEN_HEIGHT-14);
}
#v-
> I've looked at the FAQ at slrn.sf.net but didnt understand
> where to insert the code and tried .slrnrc but that just gave
> an error.
And the error is...?
Anyway. Put your snippet of code in a file, then 'interpret'
that file within your slrnrc. Say I call mine header.hook &
place it in ~/News, in my slrnrc I would use this:
interpret "News/header.hook"
--
Andrew Preater
Technical Details
Message-ID:
<slrnd6c3qk.rvg.andrew.preater@vega.dur.ac.uk>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!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!sanger.ac.uk!feed3.jnfs.ja.net!jnfs.ja.net!heffalump.dur.ac.uk!nntphost.dur.ac.uk!not-for-mailReferences:
<slrnd6bs12.3bs.claus@localhost.localdomain>Show Full Headers
Complete Article Headers
Message-ID: <slrnd6c3qk.rvg.andrew.preater@vega.dur.ac.uk> Subject: Re: setting the size of the article pager on startup Date: Wed, 20 Apr 2005 08:14:12 +0000 From: Andrew Preater <andrew.preater@durham.ac.uk> References: <slrnd6bs12.3bs.claus@localhost.localdomain> 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!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!sanger.ac.uk!feed3.jnfs.ja.net!jnfs.ja.net!heffalump.dur.ac.uk!nntphost.dur.ac.uk!not-for-mail Newsgroups: news.software.readers Organization: University of Durham Lines: 28 NNTP-Posting-Host: vega.dur.ac.uk X-Trace: heffalump.dur.ac.uk 1113984852 32731 129.234.4.198 (20 Apr 2005 X-Complaints-To: usenet@durham.ac.uk NNTP-Posting-Date: Wed, 20 Apr 2005 08:14:12 +0000 (UTC) Mail-Copies-To: nobody X-Editor: Vim 6.3 http://www.vim.org X-Crappy-Disclaimer: Opinions expressed are my own, not those of my employer User-Agent: slrn/0.9.8.1 (Linux/2.6.10-1.770_FC3smp (i686))