From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Why have you disable mouse on TTY builds? Date: Sun, 5 Jan 2025 18:40:41 +0100 Message-ID: <8532a550-cd9b-47fa-8c6f-e2d4caf8723f@libero.it> 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=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33507"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: jared@finder.org, 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:41:14 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 1tUUck-0008XL-5y for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jan 2025 18:41:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUUcL-0005oW-Cv; Sun, 05 Jan 2025 12:40:49 -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 1tUUcJ-0005oL-AZ for emacs-devel@gnu.org; Sun, 05 Jan 2025 12:40:47 -0500 Original-Received: from smtp-35.italiaonline.it ([213.209.10.35] helo=libero.it) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUUcG-0003bL-Ft for emacs-devel@gnu.org; Sun, 05 Jan 2025 12:40:46 -0500 Original-Received: from [192.168.1.2] ([79.47.225.9]) by smtp-35.iol.local with ESMTPA id UUcDtyGAAVeOhUUcDtlfiZ; Sun, 05 Jan 2025 18:40:41 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1736098841; bh=K9i7TKcJjJUNS8OulliwBbzi27S3nCNoV2L2GGoprAA=; h=From; b=wk9jzDmNqoiM82iA6KMU90lCwxYHiWmW0N9kvJao274u7EPxltvIPFdaa3yplns9l yiDlG6jERlK3SLH3qQmRor4q2fVRT3gAyPRQI5ujuwm4xOrAVQ8cJjFJySqLsrO2cM 9lBi+lvb9yjHwGWDALlSQG155ghTTVCV37F05u27v+zEpgwhhbNOC1G+lB2U8PfdO/ wSGyWEfyUxvwGblaouuhgYloL2fpGxI5X32wmYvHgr9RdpV66rbPkKO2hKJVaIYCqB azFDag2F/e4p1v4VckBxFeGqT9krMuFU2IOvloiKe0VGb65NYd1EFhyTOpMXggAmsy RRrh7j8GbTmPA== X-CNFS-Analysis: v=2.4 cv=GdbcnhXL c=1 sm=1 tr=0 ts=677ac419 cx=a_exe a=HZDqj1bt1P7tRK1qWZPwYA==:117 a=HZDqj1bt1P7tRK1qWZPwYA==:17 a=IkcTkHD0fZMA:10 a=K0b93jlnN7T6088YB3wA:9 a=QEXdDO2ut3YA:10 Content-Language: en-GB, en-US, it In-Reply-To: <86sepx6w2l.fsf@gnu.org> X-CMAE-Envelope: MS4xfPlH9sFzm1j3yyrUJr6IK6Fx8mHmhM835L03uyunJQbH5dLEN9VjRhk5G7D30wn+clNID/UDnzRS54LIeVvdWvV9gx5zWc2fKnMOPiMTyPvKBiAyf1Wo ARM9XNT7Jh/DQf5jdUhC1eyxjU4QZlR8gcxjpHFr1M431wt0rKOHN2/VJcYz4GsGGGr8xtmXGNimGFWyV+rbb3H30e+t8jBm/AnL8vCb+6cwoCJGdB3IG1x0 Received-SPF: pass client-ip=213.209.10.35; envelope-from=angelo.g0@libero.it; helo=libero.it X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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:327725 Archived-At: Il 05/01/2025 17:53, Eli Zaretskii ha scritto: > 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)))) > > It is strange that you have TERM set to xterm-256color, though. I use > the same Windows Terminal, both with cmd.exe and with MSYS Bash, and I > don't see this value in any of them. What shell do you run inside the > terminal? Are you sure this setting of TERM is not something your > shell init files do? Or maybe you use WSL or something? I use bash. WT is configured in settings.json as "colorScheme": "MSYS2-Theme", "commandline": "C:/msys64/usr/bin/bash --login", "environment": { "CHERE_INVOKING": "1", "MSYS": "winsymlinks:nativestrict", "MSYS2_PATH_TYPE": "inherit", "MSYSTEM": "MSYS" }, "guid": "{fc173dff-fd24-43df-b40e-28853998c744}", "icon": "C:/msys64/msys2.ico", "name": "MSYS2 MSYS Shell", "startingDirectory": "C:/msys64/home/%USERNAME%" ... In MSYS, UCRT64 and WSL, TERM has the same value xterm-256color. I grepped TERM in all .bashrc etc configuration files (also in /etc) but the result is empty. MinTTY set TERM to xterm. If I start MinTTY (TERM==xterm) and there I type wsl to start WSL then even WSLstarted this way has TERM==xterm-256color In short I did not find wher WT takes that value for TERM..