[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about triggering KEY_MOUSE

From: Bryan Christ
Subject: Re: Question about triggering KEY_MOUSE
Date: Tue, 1 Jan 2019 15:34:25 -0600


Thanks for the speedy reply.  I see only ESC[?1000h being emitted from the child process (which I assume comes from their app calling ncurses mousemask).  I'm not sure how to "negotiate" that with the child process so that we're both using the same sequences/encodings whether that's 1005, 1006, 1015, or whatever (other than X10).

On Tue, Jan 1, 2019 at 3:16 PM Timothy Allen <address@hidden> wrote:
On Tue, 2019-01-01 at 14:45 -0600, Bryan Christ wrote:
I can see from my data traps that the application (using ncurses) sent a ESC[?1000h sequence meaning "SET_VT200_MOUSE".  What I am questioning is what should I be writing back?  ESC[CbCxCyM where Cx and Cy are X10 encoded coords?

As per https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Normal-tracking-mode you should be writing ESC[MCbCxCy

If so, does that mean that the coord values are limited to 223?

Yes, that's why mode 1006 (SGR mouse reporting) was invented.

There's also mode 1015, invented by URXVT if that's what you're impersonating, but it's not as robust as mode 1006, for the reasons described in ctlseqs.html.
Bug-ncurses mailing list


reply via email to

[Prev in Thread] Current Thread [Next in Thread]