🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by claus Wed, 20 Apr 2005 07:01
setting the size of the article pager on startup
#165621
Author: claus
Date: Wed, 20 Apr 2005 07:01
10 lines
1216 bytes
Hey, 

How do I setup slrn to have a default article pager larger then the default?
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.

So that is why I'm posting here now.

/Claus
Re: setting the size of the article pager on startup
#165614
Author: Andrew Preater
Date: Wed, 20 Apr 2005 08:14
28 lines
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
Re: setting the size of the article pager on startup
#165616
Author: claus
Date: Wed, 20 Apr 2005 10:21
31 lines
1962 bytes
On 2005-04-20, Andrew Preater <andrew.preater@durham.ac.uk> wrote:
> * claus <claus@claus.com>:
>
> Here's what I use, change the number to your taste:
>
> #v+
> define resize_screen_hook ()
> {
>
>              set_article_window_size (SCREEN_HEIGHT-14);
> }
> #v-
>
>
> 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"
>
the error i get after I try to run the interpret command in slrnrc:
S-Lang Error: Syntax Error: Expecting a PRIMARY: found '#', line 1,
 file: /home/claus/.slrn.reader
S-Lang Error: Syntax Error: called from line 1, file: /home/claus/.slrn.reader
slrn fatal error:
/home/claus/.slrnrc: Error encountered processing line 5
interpret ".slrn.reader"

Re: setting the size of the article pager on startup
#165617
Author: Andrew Preater
Date: Wed, 20 Apr 2005 10:55
41 lines
2678 bytes
* claus <claus@claus.com>:
> On 2005-04-20, Andrew Preater <andrew.preater@durham.ac.uk> wrote:
>> 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"
>>
> the error i get after I try to run the interpret command in slrnrc:
> S-Lang Error: Syntax Error: Expecting a PRIMARY: found '#', line 1,
>  file: /home/claus/.slrn.reader

Looks like you have a '#' where a hash should not be.  We'd
better see the hook and your s-lang / slrn versions, then - my
snippet works fine with:

slang-1.4.9-13 (Fedora Core 3 package)

$ slrn --version
Slrn 0.9.8.1 [2004-10-07]
S-Lang Library Version: 1.4.9
Compiled at: Apr  7 2005 13:01:28
Operating System: Linux/2.6.10-1.770_FC3smp (i686)

 COMPILE TIME OPTIONS:
  Backends: +nntp -slrnpull -spool
  External programs / libs: -canlock -inews -ssl -uudeview
  Features: +charset_mapping +decoding +emphasized_text
+end_of_thread
    +fake_refs +gen_msgid -grouplens +mime -msgid_cache +piping
+rnlock
    +slang +spoilers -strict_from
 DEFAULTS:
  Default server object:     nntp
  Default posting mechanism: nntp
  Default character set:     isolatin
 SUPPORTED CHARACTER SETS:
  isolatin ibm850 ibm852 ibm857 ibm737 NeXT koi8

-- 
Andrew Preater
Re: setting the size of the article pager on startup
#165620
Author: claus
Date: Wed, 20 Apr 2005 12:44
61 lines
3365 bytes
On 2005-04-20, Andrew Preater <andrew.preater@durham.ac.uk> wrote:
> * claus <claus@claus.com>:
>> On 2005-04-20, Andrew Preater <andrew.preater@durham.ac.uk> wrote:
>>> 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"
>>>
>> the error i get after I try to run the interpret command in slrnrc:
>> S-Lang Error: Syntax Error: Expecting a PRIMARY: found '#', line 1,
>>  file: /home/claus/.slrn.reader
>
> Looks like you have a '#' where a hash should not be.  We'd
> better see the hook and your s-lang / slrn versions, then - my
> snippet works fine with:
>
> slang-1.4.9-13 (Fedora Core 3 package)
>
> $ slrn --version
> Slrn 0.9.8.1 [2004-10-07]
> S-Lang Library Version: 1.4.9
> Compiled at: Apr  7 2005 13:01:28
> Operating System: Linux/2.6.10-1.770_FC3smp (i686)
>
>  COMPILE TIME OPTIONS:
>   Backends: +nntp -slrnpull -spool
>   External programs / libs: -canlock -inews -ssl -uudeview
>   Features: +charset_mapping +decoding +emphasized_text
> +end_of_thread
>     +fake_refs +gen_msgid -grouplens +mime -msgid_cache +piping
> +rnlock
>     +slang +spoilers -strict_from
>  DEFAULTS:
>   Default server object:     nntp
>   Default posting mechanism: nntp
>   Default character set:     isolatin
>  SUPPORTED CHARACTER SETS:
>   isolatin ibm850 ibm852 ibm857 ibm737 NeXT koi8
>

My slrn --version results in :
Slrn 0.9.8.1 [2004-10-07]
S-Lang Library Version: 1.4.9
Compiled at: Mar 18 2005 09:40:25
Operating System: Debian

 COMPILE TIME OPTIONS:
  Backends: +nntp +slrnpull +spool
  External programs / libs: +canlock +inews +ssl +uudeview
  Features: +charset_mapping +decoding +emphasized_text +end_of_thread
    +fake_refs +gen_msgid -grouplens +mime -msgid_cache +piping +rnlock
    +slang +spoilers -strict_from
 DEFAULTS:
  Default server object:     nntp
  Default posting mechanism: nntp
  Default character set:     isolatin
 SUPPORTED CHARACTER SETS:
  isolatin ibm850 ibm852 ibm857 ibm737 NeXT koi8

and the hook i use is the one you posted
Re: setting the size of the article pager on startup
#165679
Author: Andrew Preater
Date: Wed, 20 Apr 2005 13:05
13 lines
1949 bytes
* claus <claus@claus.com>:
> On 2005-04-20, Andrew Preater <andrew.preater@durham.ac.uk> wrote:
>> Looks like you have a '#' where a hash should not be.
> [...]
> the hook i use is the one you posted

Oops!  I used 'verbatim marks' (#v+ and #v-) in my post, don't
include those in file.  I normally only use verbatim marks when
replying to a slrn user, because slrn is the only client I know
of that understands them.

-- 
Andrew Preater
Re: setting the size of the article pager on startup
#165622
Author: SINNER
Date: Wed, 20 Apr 2005 13:07
14 lines
1625 bytes
* claus wrote in news.software.readers:

[...]

> and the hook i use is the one you posted

Did you include the verbatim marks, you should not.
-- 
David
Fallen one, I am Satan. I am your god now!

There is no escape.

Now feel the delightful pain.
Re: setting the size of the article pager on startup
#165623
Author: claus
Date: Wed, 20 Apr 2005 13:11
17 lines
1813 bytes
On 2005-04-20, Andrew Preater <andrew.preater@durham.ac.uk> wrote:
> * claus <claus@claus.com>:
>> On 2005-04-20, Andrew Preater <andrew.preater@durham.ac.uk> wrote:
>>> Looks like you have a '#' where a hash should not be.
>> [...]
>> the hook i use is the one you posted
>
> Oops!  I used 'verbatim marks' (#v+ and #v-) in my post, don't
> include those in file.  I normally only use verbatim marks when
> replying to a slrn user, because slrn is the only client I know
> of that understands them.
>
Thanks a bunch it works now :D

I must say I'm very impressed with the speed of the newsgroup :)

/Claus
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