🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #146337

Re: [slrn] Function Keys on Linux

#146337
From: Max
Date: Thu, 15 Apr 2004 02:11
37 lines
2492 bytes
On 04-14-2004, in news.software.readers,
Jens Wahnes <jewa@gmx.net> wrote:

> Mike Vanecek wrote:
>
>> Thank you for the suggestion. Unfortunately, I was not able to
>> find anything that would help me with the syntax for the command
>> sequence for a map in .slrnrc. I just want to press F12 while in
>> a group and have the sequence of cynn passed to slrn. Surely it
>> is not that difficult. Note that I am not trying to write a shell
>> script.
>
> It would probably be easier so use a slrn macro that is executed
> when a certain key is pressed.  To find out which key sequence a
> given key uses, you can use the "od" program like this:
>
>| $ od -c
>| # press F12 here, then Enter and maybe also Ctrl+D
>| 0000000 033   [   2   4   ~  \n
>| 0000006
>
> On my setup, the key sequence for F12 as to be used in slrn would
> be "\033[24~" (whithout the quotes, of course). ("\033" means
> "escape" and is equivalent to "\e" in slrn.)

Way to go Jens!!!... I've been wondering how one could get at
generated escape sequences. This is useful in other places besides
slrn. I've one of those $MS crapware ready keyboards, and apparently
a few of those dumbass $MS keys are pushing out values. Interesting.

Thank you,

Max

-- 
If Bill Gates had a dime for every time Windows crashed...
           Oh wait a minute, he already does.
Technical Details
Message-ID: <slrnc7ronb.476.argos2112@nowhere.invalid>
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.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!host-216-76-230-118.jan.bellsouth.NET!not-for-mail
References: <bcllk1-4f6.ln1@news.invalid.99computer> <j27tk1-8n1.ln1@news.invalid.99computer> <slrnc7o4rd.2hor.bit-bucket@localhost.config.com> <1jmvk1-a88.ln1@news.invalid.99computer> <slrnc7r23l.l13.nsr@message-id.wahnes-world.de>

Show Full Headers
Complete Article Headers
Message-ID: <slrnc7ronb.476.argos2112@nowhere.invalid>
Subject: Re: [slrn] Function Keys on Linux
Date: Thu, 15 Apr 2004 02:11:29 +0000
From: Max <argos2112@bellsouth.net>
References: <bcllk1-4f6.ln1@news.invalid.99computer> <j27tk1-8n1.ln1@news.invalid.99computer> <slrnc7o4rd.2hor.bit-bucket@localhost.config.com> <1jmvk1-a88.ln1@news.invalid.99computer> <slrnc7r23l.l13.nsr@message-id.wahnes-world.de>
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.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!host-216-76-230-118.jan.bellsouth.NET!not-for-mail
Newsgroups: news.software.readers
Lines: 37
NNTP-Posting-Host: host-216-76-230-118.jan.bellsouth.net (216.76.230.118)
X-Trace: news.uni-berlin.de 1081995089 3151543 I 216.76.230.118 ([214296])
User-Agent: slrn/0.9.8.0 (Linux)