Re: [code] [textadept] Curses mouse/CSI events

From: Mitchell <m.att.foicica.com>
Date: Wed, 15 Oct 2014 11:34:17 -0400 (Eastern Daylight Time)

Hi Chris,

On Tue, 14 Oct 2014, Chris Emerson wrote:

> Hi Mitchell,
>
> TermKey supports some event types (like xterm mouse reporting) which Textadept
> currently discards, such as xterm mouse events and a generic "unknown CSI
> sequence" event.
>
> Would you accept a patch which passed these in to Lua in some form?
>
> My current interest is taking advantage of "Bracketed Paste" sequences:
>
> http://www.xfree86.org/current/ctlseqs.html#Bracketed%20Paste%20Mode
>
> (It might be interesting to also try implementing the various click/dwell events
> using mouse reporting, but I'm not planning on that right now. So maybe it
> would be best not to expose the raw mouse events, and possibly consider adding
> support to ScintillaTerm at some point.)
>
> I've checked that (once enabled) TermKey happily sends them (as
> TERMKEY_TYPE_UNKNOWN_CSI), but Textadept ignores them (in fact it sends a
> duplicate of the previous keypress).
>
> I would be thinking of a new event (something like "CURSES_CSI", or something
> better), which would send a table with the command and arguments (as received
> from termkey_interpret_csi()). That seemed cleaner than trying to turn them
> into something to pass to the KEYPRESS event.

Yes I would accept patches for mouse events. I looked into this some time
ago, but wasn't able to get anything working. However, I am ignorant when
it comes to terminal stuff, so I'm sure you'll have more success.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 15 Oct 2014 - 11:34:17 EDT

This archive was generated by hypermail 2.2.0 : Thu 16 Oct 2014 - 06:46:43 EDT