🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Joe Smulowicz Wed, 29 Jan 1997 00:00
slrn: Where are all the keymapping choices?
#30425
Author: Joe Smulowicz
Date: Wed, 29 Jan 1997 00:00
36 lines
2015 bytes
Hello,

I've been using slrn (color and mono) for a while now.  I have both 8.7.1  and
9.X.X  versions.  In the documentation there are many commands listed that can
be mapped to the keys as the user desires.   However,  not  all  commands  are
given. 

For instance, I wanted to change the key used to collapse  threads.   Normally
this  is  set to ESC-t, and I wanted to make it single key, like "t".  I could
not find the key mapping string for this command in the documentation. 

So, I did a "strings" on the slrn executable (don't have the source) and  came
up  with the "toggle_collapse_threads" variable.  All I had to do was map this
to the "t" key and it worked. 

I had to go through the same thing with some other commands;  it's  a  tedious
way  to  discover available options.  Is there any other documentation on this
or is the only way to "strings" and "grep"  my  way  through  the  source  and
executable code? 


					 Thanks.




------------------------------------------------------------------------------
 Joe Smulowicz               Hewlett-Packard                Tel: 508-659-3760
 joes@an.hp.com      Mailstop 450, 3000 Minuteman Road      Fax: 508-685-3577
                       Andover, Massachusetts  01810         
      PGP fingerprint: 50 EA 8B 22 A0 59 60 D5  DD 4B 04 04 12 26 2E 16
------------------------------------------------------------------------------


Re: slrn: Where are all the keymapping choices?
#30468
Author: Holger Lillqvist
Date: Thu, 30 Jan 1997 00:00
26 lines
1710 bytes
Quoting Joe Smulowicz:
> I've been using slrn (color and mono) for a while now.  I have both 8.7.1  and
> 9.X.X  versions.  In the documentation there are many commands listed that can
> be mapped to the keys as the user desires.   However,  not  all  commands  are
> given. 
> For instance, I wanted to change the key used to collapse  threads.   Normally
> this  is  set to ESC-t, and I wanted to make it single key, like "t".  I could
> not find the key mapping string for this command in the documentation. 

In the documentation, there is the sample slrn.rc -file, which you
should use as ground for your own startup .slrnrc -file, and which you
can modify to your heart's content. There is everything you need, also:

setkey article toggle_collapse_threads "\et"

Perhaps you have copied someone else's .slrnrc -file, which may be
incomplete, perhaps containing just some changes against the default
values? Anyway, copy a fresh one.

Regards,

-- 
Holger.Lillqvist@Helsinki.Fi

Re: slrn: Where are all the keymapping choices?
#30515
Author: Sandy Herring
Date: Thu, 30 Jan 1997 00:00
19 lines
1246 bytes
On 29 Jan 1997 17:24:13 GMT, Joe Smulowicz <joes@hpwaroh.an.hp.com> wrote:
>Hello,
>
>I've been using slrn (color and mono) for a while now.  I have both 8.7.1  and
>9.X.X  versions.  In the documentation there are many commands listed that can
>be mapped to the keys as the user desires.   However,  not  all  commands  are
>given. 
[chomp]

Take a look at the "Group keymap" and "Article mode keymap" sections of
your .slrnrc.

Sandy
-- 
Sandy Herring                  Portland         Peck of Pickled Pisces
sandy@herring.org               Oregon          http://www.herring.org/

Re: slrn: Where are all the keymapping choices?
#30593
Author: John E. Davis
Date: Fri, 31 Jan 1997 00:00
17 lines
1166 bytes
On 29 Jan 1997 17:24:13 GMT, Joe Smulowicz <joes@hpwaroh.an.hp.com>
wrote:
>I had to go through the same thing with some other commands;  it's  a  tedious
>way  to  discover available options.  Is there any other documentation on this
>or is the only way to "strings" and "grep"  my  way  through  the  source  and
>executable code? 

The documentation needs to be updated to include all builtin commands.
An easy way to grep the source is:

    grep 'A_KEY(' slrn/src/art.c   > article.commands
    grep 'A_KEY(' slrn/src/group.c > group.commands
    
--John    

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