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

From: Mitchell <>
Date: Sat, 25 Oct 2014 16:32:30 -0400 (EDT)

Hi Chris,

On Sat, 25 Oct 2014, Chris Emerson wrote:

> Hi Mitchell,
> On Fri, Oct 24, 2014 at 04:17:51PM -0400, Mitchell wrote:
>> Thanks for this and sorry for my silence. I saw this early in the
>> week and it gave me the incentive to work on implementing mouse
>> events for Scinterm natively. I'm cleaning up that code and adding
>> similar support for Win32 terminal. Once I finish that I'll
>> implement mouse events for Textadept per your patch, add your Lua
>> logic for resizing views, and hopefully commit something in the next
>> few days.
> That sounds great!
> Some thoughts based on using this for a bit:
> How are you handling enabling/disabling the mouse events? I haven't looked
> into the terminfo/whatever to work out whether the terminal supports the mouse
> reporting. It would be good to be able to enable/disable it from Lua anyway;
> I often suspend textadept-curses, and need to turn the mouse reports off until
> it's resumed (or else the shell/other programs get confused). I guess that
> might affect running other programs too.

I'm just using the code you supplied, so `io.stdout:write()` to enable and
disable on init and quit, respectively. Nothing special. By default
Textadept curses doesn't suspend, so I'm not too concerned about anything
more complicated.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sat 25 Oct 2014 - 16:32:30 EDT

This archive was generated by hypermail 2.2.0 : Sun 26 Oct 2014 - 06:53:39 EDT