bug-ncurses
[Top][All Lists]
Advanced

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

Re: Question about triggering KEY_MOUSE


From: Thomas Dickey
Subject: Re: Question about triggering KEY_MOUSE
Date: Tue, 1 Jan 2019 19:25:57 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Jan 02, 2019 at 08:15:33AM +1100, Timothy Allen 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.

...moreover, support for reading it in ncurses is usually not compiled-in
(ymmv).

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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