From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jared Finder Newsgroups: gmane.emacs.devel Subject: Re: Why have you disable mouse on TTY builds? Date: Sun, 05 Jan 2025 09:35:59 -0800 Message-ID: <638f749d6f400ab2159aad4558cd9b17@finder.org> References: <5c8854f9-53ec-43c7-b82a-e040ba246ccf@libero.it> <868qrpaf7r.fsf@gnu.org> <6437ff4e-1594-426a-8502-f7a6bec82808@libero.it> <86msg58qik.fsf@gnu.org> <8d232192-85d3-49f9-b2fb-5ef140bfee67@libero.it> <86sepx6w2l.fsf@gnu.org> 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="17329"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Angelo Graziosi , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 05 18:36:56 2025 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 1tUUYa-0004KX-7X for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jan 2025 18:36:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUUXn-0004qg-Id; Sun, 05 Jan 2025 12:36:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUUXm-0004qX-7q for emacs-devel@gnu.org; Sun, 05 Jan 2025 12:36:06 -0500 Original-Received: from greenhill.hpalace.com ([192.155.80.58]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUUXh-0002Gx-U1; Sun, 05 Jan 2025 12:36:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=finder.org; s=2018; t=1736098559; bh=WPkLbKZsUZye2kqhAwNhuHS9tsXVbAe77EMb7+BCqHI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cZBo4msw6L1c5iJPGtZIhzY8tRvxbqF+oSVPN+9JO861M3onHKa1XBRL2MtevF2Sg lGgfZBryhWx+Xm0/6L9gy6gHb9BLeTcUAYnvOmOUBr5H2BRkCX/QV7a0CwctZeG+Sg x5BmdQiRJPdVqriPcKpX/gBvxHOrZ4keh89t6POEuQpb5XbY5L6QVHSGPRIMAqB7aV uZgee/v0SAGlpUGg907sR04DUMSVH2YYYtH2WobW7dOLx5rpBqxnq+1Mwg+PWDw4sk G1HWEAh+Yg9uge7zw2z/10rBKTRxrPVEnbO4nCe6unet7JGAThupI3Kb7QNa5tg5ef UcD8vTcUgZhiA== Original-Received: from mail.finder.org (unknown [192.155.80.58]) by greenhill.hpalace.com (Postfix) with ESMTPSA id 70258138A; Sun, 5 Jan 2025 17:35:59 +0000 (UTC) In-Reply-To: <86sepx6w2l.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-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327724 Archived-At: On 2025-01-05 08:53, Eli Zaretskii wrote: >> Date: Sun, 5 Jan 2025 13:12:43 +0100 >> Cc: emacs-devel@gnu.org >> From: Angelo Graziosi >> >> > Can you tell more about the terminal you are using? How do you start >> > this terminal, and what program does it run? >> > >> > Also, does it set TERM to some value, and if so, to which value? >> >> Windows Terminal is called in this way, it is >> https://github.com/microsoft/terminal/releases/tag/v1.22.3232.0 >> >> and one gets >> >> $ echo $TERM >> xterm-256color >> >> BTW, I reinstalled the previous TTY build (pure MSYS2), >> >> GNU Emacs 31.0.50 (build 1, x86_64-pc-cygwin) >> of 2024-12-20 >> >> >> and it works with mouse settings commented out in init.el >> >> ;;(require 'mouse) >> ;;(require 'mwheel) >> ;;(unless window-system >> ;;(xterm-mouse-mode t) >> ;;(mouse-wheel-mode t)) >> >> The same does not work with current master build for TTY. > > So I guess this terminal somehow doesn't pass this test in xterm.el: > > ;; Only automatically enable xterm mouse on terminals > ;; confirmed to still support all critical editing > ;; workflows (bug#74833). > (or (string-match-p xterm--auto-xt-mouse-allowed-types > (tty-type (selected-frame))) > (and-let* ((name-and-version > (xterm--query-name-and-version))) > (string-match-p xterm--auto-xt-mouse-allowed-names > name-and-version)))) This is my expectation as well. Windows Terminal does properly support OSC52 and xterm mouse modes, but has no good way to detect it. Windows Terminal does uniquely set WT_SESSION, but that's not forwarded over SSH in a default configuration. I filed a bug on Windows Terminal to have it support an XTVERSION query (https://github.com/microsoft/terminal/issues/18382) and I hope they are able to address quickly like on the previous Emacs uncovered xterm-related issue I filed. -- MJF