From: Eli Zaretskii <eliz@gnu.org>
To: Angelo Graziosi <angelo.g0@libero.it>
Cc: jared@finder.org, emacs-devel@gnu.org
Subject: Re: Why have you disable mouse on TTY builds?
Date: Sun, 05 Jan 2025 18:53:54 +0200 [thread overview]
Message-ID: <86sepx6w2l.fsf@gnu.org> (raw)
In-Reply-To: <8d232192-85d3-49f9-b2fb-5ef140bfee67@libero.it> (message from Angelo Graziosi on Sun, 5 Jan 2025 13:12:43 +0100)
> 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))))
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?
The reason we added these tests to xterm.el is that some terminals
which set TERM to xterm don't really support the features we need, and
turning xterm-mouse-mode on those terminals has adverse effects.
xterm-mouse-mode was not enabled by default until very recently, so
terminals that don't pass these tests should work like they did before
we turned on xterm-mouse-mode by default on all terminals that pretend
to be xterm.
next prev parent reply other threads:[~2025-01-05 16:53 UTC|newest]
Thread overview: 16+ 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 [this message]
2025-01-05 17:35 ` Jared Finder
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-09 8:04 ` Angelo Graziosi
2025-01-05 17:40 ` Angelo Graziosi
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86sepx6w2l.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=angelo.g0@libero.it \
--cc=emacs-devel@gnu.org \
--cc=jared@finder.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.