Thread View: news.software.readers
7 messages
7 total messages
Started by Mike Vanecek
Sat, 10 Apr 2004 16:57
[SLRN] Function Keys on Linux
Author: Mike Vanecek
Date: Sat, 10 Apr 2004 16:57
Date: Sat, 10 Apr 2004 16:57
8 lines
1074 bytes
1074 bytes
I want to program one of my function keys to do a c[enter]nn or cynn. I have looked in the manual and help file, but have not been able to find the key codes for the function keys. For example, what would be the syntax to program function key 9 or 12 to send the above key sequence? -- Thanks, Mike.
Re: [slrn] Function Keys on Linux
Author: Mike Vanecek
Date: Tue, 13 Apr 2004 13:43
Date: Tue, 13 Apr 2004 13:43
11 lines
1219 bytes
1219 bytes
On 10 Apr 2004 11:57:05 -0500, Mike Vanecek wrote: > I want to program one of my function keys to do a c[enter]nn or cynn. I have > looked in the manual and help file, but have not been able to find the key > codes for the function keys. For example, what would be the syntax to program > function key 9 or 12 to send the above key sequence? Can someone please give me a doco reference or a hint on how to do the above? -- Thanks, Mike.
Re: [slrn] Function Keys on Linux
Author: Allodoxaphobia
Date: Tue, 13 Apr 2004 16:21
Date: Tue, 13 Apr 2004 16:21
15 lines
1751 bytes
1751 bytes
On 13 Apr 2004 08:43:06 -0500, Mike Vanecek hath writ: > On 10 Apr 2004 11:57:05 -0500, Mike Vanecek wrote: >> I want to program one of my function keys to do a c[enter]nn or cynn. I have >> looked in the manual and help file, but have not been able to find the key >> codes for the function keys. For example, what would be the syntax to program >> function key 9 or 12 to send the above key sequence? > > Can someone please give me a doco reference or a hint on how to do the above? man bash -- | Marvin L Jones | jonz | W3DHJ | OS/2 | Gunnison, Colorado | @ | Jonesy | linux __ | 7,703' -- 2,345m | config.com | DM68mn SK
Re: [slrn] Function Keys on Linux
Author: Mike Vanecek
Date: Wed, 14 Apr 2004 12:17
Date: Wed, 14 Apr 2004 12:17
21 lines
1851 bytes
1851 bytes
On 13 Apr 2004 16:21:02 GMT, Allodoxaphobia wrote: > On 13 Apr 2004 08:43:06 -0500, Mike Vanecek hath writ: >> On 10 Apr 2004 11:57:05 -0500, Mike Vanecek wrote: >>> I want to program one of my function keys to do a c[enter]nn or cynn. I have >>> looked in the manual and help file, but have not been able to find the key >>> codes for the function keys. For example, what would be the syntax to program >>> function key 9 or 12 to send the above key sequence? >> Can someone please give me a doco reference or a hint on how to do the above? > man bash 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. -- Thanks, Mike.
Re: [slrn] Function Keys on Linux
Author: Jens Wahnes
Date: Wed, 14 Apr 2004 18:52
Date: Wed, 14 Apr 2004 18:52
23 lines
2012 bytes
2012 bytes
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.)
Jens
Re: [slrn] Function Keys on Linux
Author: Max
Date: Thu, 15 Apr 2004 02:11
Date: Thu, 15 Apr 2004 02:11
37 lines
2492 bytes
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.
Re: [slrn] Function Keys on Linux
Author: Mike Vanecek
Date: Thu, 15 Apr 2004 22:33
Date: Thu, 15 Apr 2004 22:33
30 lines
2071 bytes
2071 bytes
On Wed, 14 Apr 2004 18:52:37 +0000 (UTC), Jens Wahnes 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.)
> Jens
Thank you. I will study the above in more depth when I get back to home base.
--
Thanks, Mike.
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