🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #155568

Re: [Slrn] Bind End/Home Key

#155568
From: 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?   |
`---------------------------------------------------------------'
Technical Details
Message-ID: <87vfei7x4u.fsf@phun.phasmic.org>
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!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mail
References: <slrnck8mv6.a93.root@dragonhill.xs4all.nl> <87k6uz9k5m.fsf@phun.phasmic.org> <slrnckah57.rl6.root@dragonhill.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <87vfei7x4u.fsf@phun.phasmic.org>
Subject: Re: [Slrn] Bind End/Home Key
Date: Mon, 13 Sep 2004 21:05:21 +0100
From: Neil Woods <cnw+usenet@pobox.com>
References: <slrnck8mv6.a93.root@dragonhill.xs4all.nl> <87k6uz9k5m.fsf@phun.phasmic.org> <slrnckah57.rl6.root@dragonhill.xs4all.nl>
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!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: TINO
Lines: 42
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.uni-berlin.de VHIMm9MocHM3GE1Fei0iSgPam8G4WRe1xGD4IBUN4ewkIvHTk7
X-Orig-Path: localhost
User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)
Cancel-Lock: sha1:CRBj3IUC+qIwY+IFHHYp0NgoOws=