🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Kees de Koster Sun, 12 Sep 2004 14:23
[Slrn] Bind End/Home Key
#155506
Author: Kees de Koster
Date: Sun, 12 Sep 2004 14:23
22 lines
1778 bytes
I can't bind the End and Home Key in Slrn to the bob and eob function.

I did try in .slrnrc

setkey group bob              "\103"    % Go to the bottom of the list
and the octal version
setkey group bob              "\147"    % Go to the bottom of the list

But that doesn't work, I have googled around but can't find a answer to
it.

Can anybody point me in the right direction?

GG
Kees

[ A little bit of me... http://www.xs4all.nl/~kostercd/ ]
-- 
Being a mime means never having to say you're sorry.
16:23:07 up 1 day, 7:50, 3 users, load average: 0.20, 0.20, 0.12
Linux Registered User #300181  |  ICQ #179658498
PGP (Public Key) available by request -- # EOE 
Re: [Slrn] Bind End/Home Key
#155528
Author: Neil Woods
Date: Sun, 12 Sep 2004 22:50
24 lines
1780 bytes
Kees de Koster <root@dragonhill.xs4all.nl> writes:

> I can't bind the End and Home Key in Slrn to the bob and eob function.
>
> I did try in .slrnrc
>
> setkey group bob              "\103"    % Go to the bottom of the list
> and the octal version
> setkey group bob              "\147"    % Go to the bottom of the list
>
> But that doesn't work, I have googled around but can't find a answer to
> it.
>
> Can anybody point me in the right direction?

Sure. Try:

setkey group bob              "\e[1~"    % Go to the top (home key)
setkey group eob              "\e[4~"    % Go to the bottom (end key)

-- 
,---------------------------------------------------------------.
|   Neil Woods   |   Do you ever get that feeling of deja vu?   |
`---------------------------------------------------------------'
Re: [Slrn] Bind End/Home Key
#155546
Author: Kees de Koster
Date: Mon, 13 Sep 2004 06:56
40 lines
2540 bytes
In article <87k6uz9k5m.fsf@phun.phasmic.org>, Neil Woods wrote:
> Kees de Koster <root@dragonhill.xs4all.nl> writes:
>
>> I can't bind the End and Home Key in Slrn to the bob and eob function.
>>
>> I did try in .slrnrc
>>
>> setkey group bob              "\103"    % Go to the bottom of the list
>> and the octal version
>> setkey group bob              "\147"    % Go to the bottom of the list
>>
>> But that doesn't work, I have googled around but can't find a answer to
>> it.
>>
>> Can anybody point me in the right direction?
>
> Sure. Try:
>
> setkey group bob              "\e[1~"    % Go to the top (home key)
> setkey group eob              "\e[4~"    % Go to the bottom (end key)
>

Thanks Neil,

Your suggestion doesn't work by me, if I add your two lines to my
.slrnrc and comment out the others still the ESC-< and ESC-> places the
cursor to the first/last line and not Home/End.

I'm wondering if it can be related that I compiled slrn local and not
system wide. There is no /etc/slrnrc file etc.

GG
Kees

[ A little bit of me... http://www.xs4all.nl/~kostercd/ ]
-- 
Yes, but which self do you want to be?
08:56:21 up 2 days, 23 min, 3 users, load average: 0.09, 0.17, 0.14
Linux Registered User #300181  |  ICQ #179658498
PGP (Public Key) available by request -- # EOE 
Re: [Slrn] Bind End/Home Key
#155568
Author: Neil Woods
Date: Mon, 13 Sep 2004 20:05
42 lines
2508 bytes
Kees de Koster <root@dragonhill.xs4all.nl> writes:

>> setkey group bob              "\e[1~"    % Go to the top (home key)
>> setkey group eob              "\e[4~"    % Go to the bottom (end key)
>>
>
> Thanks Neil,
>
> Your suggestion doesn't work by me, if I add your two lines to my
> .slrnrc and comment out the others still the ESC-< and ESC-> places the
> cursor to the first/last line and not Home/End.

I suspect they're builtin bindings. 

The bindings above work fine on linux console and gnome-terminal in
linux console mode (at least here).

What you could do to determine the correct key bindings is to:

Go to the same terminal type (xterm,rxvt,etc) in which you normally run
slrn. From the shell prompt type Control-V followed by the particular
key (home,end,etc) you wish to assign. (Control-V means quote next key).
You should have something like:

^[[3~

the first character is ESC, but prints to the screen as "^[", so replace
that in the key definition above with "\e", so the above becomes
"\e[3~".

Put these values just printed in the above definitions for "bob" and
"eob" in ~/.slrnrc.

> I'm wondering if it can be related that I compiled slrn local and not
> system wide. There is no /etc/slrnrc file etc.

That shouldn't make a difference.

-- 
,---------------------------------------------------------------.
|   Neil Woods   |   Do you ever get that feeling of deja vu?   |
`---------------------------------------------------------------'
Re: [Slrn] Bind End/Home Key SOLVED
#155574
Author: Kees de Koster
Date: Mon, 13 Sep 2004 21:24
36 lines
2542 bytes
In article <87vfei7x4u.fsf@phun.phasmic.org>, Neil Woods wrote:
> Kees de Koster <root@dragonhill.xs4all.nl> writes:

[...]

> What you could do to determine the correct key bindings is to:
>
> Go to the same terminal type (xterm,rxvt,etc) in which you normally run
> slrn. From the shell prompt type Control-V followed by the particular
> key (home,end,etc) you wish to assign. (Control-V means quote next key).
> You should have something like:
>
> ^[[3~
>
> the first character is ESC, but prints to the screen as "^[", so replace
> that in the key definition above with "\e", so the above becomes
> "\e[3~".
>
> Put these values just printed in the above definitions for "bob" and
> "eob" in ~/.slrnrc.

[...]

Thanks a lot, that did the trick. Now I know also how the key bindings
works. I thought first that the way it is done by slrn was a little bit
fuzzy. But now it's clear.

GG
Kees

[ A little bit of me... http://www.xs4all.nl/~kostercd/ ]
-- 
No skis take rocks like rental skis!
23:23:06 up 4:15, 3 users, load average: 0.17, 0.24, 0.15
Linux Registered User #300181  |  ICQ #179658498
PGP (Public Key) available by request -- # EOE 
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