🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Mike Vanecek Thu, 22 Apr 2004 04:47
[slrn] Sending keystrokes to slrn
#146868
Author: Mike Vanecek
Date: Thu, 22 Apr 2004 04:47
16 lines
1137 bytes
I thought I could use setkey to pass the results of a pressed key to slrn.
Thus far I have not been able to get it to work. I have read the manual and
looked at several files. 

This does not work

setkey article "cYnn" "\033[24~"

The key press works (F12); however, cYnn is not processed by slrn. Obviously,
I am not mapping the key correctly. 

Would someone please give me some help?

-- 
  Thanks, Mike.
Re: [slrn] Sending keystrokes to slrn
#146884
Author: Jens Wahnes
Date: Thu, 22 Apr 2004 14:57
14 lines
1435 bytes
Mike Vanecek wrote:

> This does not work
> setkey article "cYnn" "\033[24~"

The second argument to setkey needs to be a slrn function or a macro. 
On the one hand, you could of course write a macro that uses
set_input_chars to set a certain input, on the other hand that's
probably not what you want.  Calling the appropriate slrn functions
from the macro would probably make more sense.


Jens
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