From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Making TTY menus more visual Date: Sun, 04 Oct 2020 09:24:55 +0300 Message-ID: <83a6x2fqyw.fsf@gnu.org> References: <087df85a965fac6555a755c1bbebf1ea@finder.org> <83r1qhf5ii.fsf@gnu.org> <83wo07g0bf.fsf@gnu.org> <85afa5c0a0a789c6047e92f6ecfa9fcc@finder.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23366"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Jared Finder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 04 08:26:15 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 1kOxTL-0005x8-5a for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Oct 2020 08:26:15 +0200 Original-Received: from localhost ([::1]:56470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOxTK-0001PS-8G for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Oct 2020 02:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOxS5-0000tM-QQ for emacs-devel@gnu.org; Sun, 04 Oct 2020 02:24:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37198) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOxS5-0000yY-Gl; Sun, 04 Oct 2020 02:24:57 -0400 Original-Received: from [176.228.60.248] (port=3565 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOxS4-0004NS-JE; Sun, 04 Oct 2020 02:24:57 -0400 In-Reply-To: <85afa5c0a0a789c6047e92f6ecfa9fcc@finder.org> (message from Jared Finder on Sat, 03 Oct 2020 12:26:49 -0700) 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:257010 Archived-At: > Date: Sat, 03 Oct 2020 12:26:49 -0700 > From: Jared Finder > Cc: emacs-devel@gnu.org > > From injecting debug logs into read_menu_input, I can observe that > tty-menu-mouse-movement is never received so the highlighted item never > changes except due to keyboard input. And from tracing > xterm-mouse--read-event-sequence, it appears that Emacs normally does > not receive xterm mouse motion events unless a button is pressed. > > 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?