[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why have you disable mouse on TTY builds?
From: |
Eli Zaretskii |
Subject: |
Re: Why have you disable mouse on TTY builds? |
Date: |
Sun, 05 Jan 2025 18:53:54 +0200 |
> 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.
- Why have you disable mouse on TTY builds?, Angelo Graziosi, 2025/01/04
- Re: Why have you disable mouse on TTY builds?, Angelo Graziosi, 2025/01/04
- Re: Why have you disable mouse on TTY builds?, Eli Zaretskii, 2025/01/05
- Re: Why have you disable mouse on TTY builds?, Angelo Graziosi, 2025/01/05
- Re: Why have you disable mouse on TTY builds?, Eli Zaretskii, 2025/01/05
- Re: Why have you disable mouse on TTY builds?, Angelo Graziosi, 2025/01/05
- Re: Why have you disable mouse on TTY builds?,
Eli Zaretskii <=
- Re: Why have you disable mouse on TTY builds?, Jared Finder, 2025/01/05
- Re: Why have you disable mouse on TTY builds?, Angelo Graziosi, 2025/01/08
- Re: Why have you disable mouse on TTY builds?, Jared Finder, 2025/01/08
- Re: Why have you disable mouse on TTY builds?, Jared Finder, 2025/01/08
- Re: Why have you disable mouse on TTY builds?, Eli Zaretskii, 2025/01/09
- Re: Why have you disable mouse on TTY builds?, Jared Finder, 2025/01/13
- Re: Why have you disable mouse on TTY builds?, Angelo Graziosi, 2025/01/18
- Re: Why have you disable mouse on TTY builds?, Angelo Graziosi, 2025/01/09
- Re: Why have you disable mouse on TTY builds?, Angelo Graziosi, 2025/01/05
- Message not available
- Re: Why have you disable mouse on TTY builds?, Jared Finder, 2025/01/18