emacs-devel
[Top][All Lists]
Advanced

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

Re: Making TTY menus more visual


From: Jared Finder
Subject: Re: Making TTY menus more visual
Date: Sun, 04 Oct 2020 15:15:30 -0700
User-agent: Roundcube Webmail/1.3.15

On 2020-10-03 11:24 pm, Eli Zaretskii wrote:
Date: Sat, 03 Oct 2020 12:26:49 -0700
From: Jared Finder <jared@finder.org>
Cc: emacs-devel@gnu.org

This appears to be due to xt-mouse sending event code 1002 instead of
1003 (see
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking).

Hmm... maybe I'm misunderstanding what that page says, but it seems
to say 1002 is for button click event and 1003 is for any mouse event:

     #define SET_BTN_EVENT_MOUSE         1002
     #define SET_ANY_EVENT_MOUSE         1003

What am I missing?

A summary of my understanding of https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking:

SET_VT200_MOUSE (1000) is for button press and release events.
SET_BTN_EVENT_MOUSE (1002) is for mouse move events while a button is pressed.
SET_ANY_EVENT_MOUSE (1003) is for all mouse move events.

Specifically, the section "Any-event tracking" makes the distinction between 1002 and 1003 clear. A direct quote:

Any-event tracking

Any-event mode is the same as button-event mode, except that all motion
events are reported, even if no mouse button is down.  It is enabled by
specifying 1003 to DECSET.

  -- MJF



reply via email to

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