Re: Keyboard remapping

Christian Ebert <[email protected]>
Newsgroups gmane.network.slrn.user
Organization Black Trash Productions http://www.blacktrash.org/
Message-ID <[email protected]>
* 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?

I don't think there is a corresponding function for *half*-down/up
in slrn.

You can configure keybindings in your slrnrc, the above would be:

setkey article article_page_up "k"

But probably you're rather looking for header_page_up.

> In more general terms, I guess this is all documented in the slrn
> manual, or do I need to look a lus doc as well?

manual.txt and slrnfuns.txt

I don't know whether there's a sample slrnrc with all the default
keybindings around, but they are documented in manual.txt

c
-- 
So dacht ich. Nächstens mehr.
_HÖLDERLIN: H Y P E R I O N_  --->> http://www.blacktrash.org/hyperion/

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.