2 Jan 2010 23:20
Re: Keyboard remapping
Christian Ebert <blacktrash <at> gmx.net>
2010-01-02 22:20:51 GMT
2010-01-02 22:20:51 GMT
* Chris Jones on Saturday, January 02, 2010 at 15:47:21 -0500
> On Sat, Jan 02, 2010 at 09:07:58AM EST, Christian Ebert wrote:
>> * Chris Jones on Saturday, January 02, 2010 at 03:34:14 -0500
>>> Is there any way I can issue 'setkey' commands when in slrn, so as to
>>> test keyboard remappings.
>>>
>>> In mutt for instance, say I want to make Ctrl-D page down one half
>>> screen, I would type ':' to open the command line, and enter something
>>> like 'bind generic half-down'.
>>>
>>> Is this possible with slrn?
>>
>> You could do this with the definekey function at the slang prompt
>> (bound to ^X\e (Ctrl-X Esc) by default iirc):
>>
>> S-Lang> definekey ("call(\"article_page_up\")", "k", "article");
>> ^^^^^^^
>> that's the prompt you get.
>
> Thanks, just getting a prompt of some form or other was the first
> hurdle. I tested the above and though it's not doing what I want, it
> definitely does something, and now I can start to play with this.
Yeah, I wasn't sure what you wanted, but unfortunately I am quite
sure that you won't get it
, see below.
> I didn't see any sign anywhere that slrn supports half-screen paging as
> mutt does. Would you happen to know if there is any way I can enable
> this and bind for instance half-up & half-down to Ctrl-U & Ctrl-D?
(Continue reading)
RSS Feed