unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jared Finder <jared@finder.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Angelo Graziosi <angelo.g0@libero.it>, emacs-devel@gnu.org
Subject: Re: Why have you disable mouse on TTY builds?
Date: Sun, 05 Jan 2025 09:35:59 -0800	[thread overview]
Message-ID: <638f749d6f400ab2159aad4558cd9b17@finder.org> (raw)
In-Reply-To: <86sepx6w2l.fsf@gnu.org>

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 <angelo.g0@libero.it>
>> 
>> > 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



  reply	other threads:[~2025-01-05 17:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-05  0:02 Why have you disable mouse on TTY builds? Angelo Graziosi
2025-01-05  0:16 ` Angelo Graziosi
2025-01-05  9:05   ` Eli Zaretskii
2025-01-05 10:01     ` Angelo Graziosi
2025-01-05  7:32 ` Eli Zaretskii
2025-01-05  9:58   ` Angelo Graziosi
2025-01-05 11:10     ` Eli Zaretskii
2025-01-05 12:12       ` Angelo Graziosi
2025-01-05 16:53         ` Eli Zaretskii
2025-01-05 17:35           ` Jared Finder [this message]
2025-01-08 16:15             ` Angelo Graziosi
2025-01-09  4:52               ` Jared Finder
2025-01-09  4:54                 ` Jared Finder
2025-01-09  6:25                   ` Eli Zaretskii
2025-01-13  6:36                     ` Jared Finder
2025-01-18 19:26                       ` Angelo Graziosi
2025-01-09  8:04                   ` Angelo Graziosi
2025-01-05 17:40           ` Angelo Graziosi
     [not found]         ` <f16cb443cd816ed73f31ba358654ac1e@finder.org 5c284702-c37e-47e2-95af-5db8f53e3ded@libero.it>
2025-01-19  4:54           ` Jared Finder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=638f749d6f400ab2159aad4558cd9b17@finder.org \
    --to=jared@finder.org \
    --cc=angelo.g0@libero.it \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).