[Top][All Lists]

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

Re: Question about triggering KEY_MOUSE

From: Timothy Allen
Subject: Re: Question about triggering KEY_MOUSE
Date: Wed, 02 Jan 2019 08:15:33 +1100
User-agent: Evolution 3.30.3-1

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.

reply via email to

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