From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jared Finder via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Making TTY menus more visual Date: Sun, 04 Oct 2020 15:15:30 -0700 Message-ID: <0c587ba6ce9e5accae3fef7db85f7203@finder.org> References: <087df85a965fac6555a755c1bbebf1ea@finder.org> <83r1qhf5ii.fsf@gnu.org> <83wo07g0bf.fsf@gnu.org> <85afa5c0a0a789c6047e92f6ecfa9fcc@finder.org> <83a6x2fqyw.fsf@gnu.org> Reply-To: Jared Finder Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16401"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Roundcube Webmail/1.3.15 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 05 00:16:52 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPCJI-0004AU-IY for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Oct 2020 00:16:52 +0200 Original-Received: from localhost ([::1]:53186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPCJH-00028c-I4 for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Oct 2020 18:16:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPCI7-0001fz-P2 for emacs-devel@gnu.org; Sun, 04 Oct 2020 18:15:39 -0400 Original-Received: from greenhill.hpalace.com ([192.155.80.58]:39972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPCI5-0001Wy-Sj; Sun, 04 Oct 2020 18:15:39 -0400 Original-Received: from mail.finder.org (greenhill.hpalace.com [IPv6:2600:3c01::f03c:91ff:fe73:2daa]) by greenhill.hpalace.com (Postfix) with ESMTPSA id BC35E7BD; Sun, 4 Oct 2020 22:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=finder.org; s=2018; t=1601849730; bh=KTQCYyNzVoHoBJ/6VTgY6TLT3d+MQMy9PFXubQvcVbQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=h+khVZwhWYsGBkoSpTOf6TvfD1ttfoFBrVJ2QrFjxZOkZu0p49kS5gaKAOuHtTME1 jwMpIhpj710IIe62NI36tmbDxnYeAlYqOUqYntiV5pXnsBxOJSlKo7cOIlpxFfi+i7 lZaArqNDaPDkD/9CD5OJEyKeraSxU6SyEE3znL2SWmLh2uB/NYgRV+7tb6qAXjpE2b OI0Fei8rBuRitZ/UKpTjj6xX90oARZuhaUxBoaaBTbwMtf6SRRJTC6xh6ul8/LRBm5 7QYsrMSrEwa8u4/WUQJTH+NESUo5lHGZZLbugyG9/95VWo3+rZfWuCXxeyrSo/JBg3 9Iakwk4Ex9knQ== In-Reply-To: <83a6x2fqyw.fsf@gnu.org> X-Sender: jared@finder.org Received-SPF: pass client-ip=192.155.80.58; envelope-from=jared@finder.org; helo=greenhill.hpalace.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/04 18:15:31 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:257055 Archived-At: On 2020-10-03 11:24 pm, Eli Zaretskii wrote: >> Date: Sat, 03 Oct 2020 12:26:49 -0700 >> From: Jared Finder >> 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