On 2024-12-07 22:07, Eli Zaretskii wrote:
Date: Sat, 07 Dec 2024 16:37:46 -0800
From: Jared Finder <jared@finder.org>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs-devel@gnu.org
As long as we can defer actually sending the mouse tracking escape
sequence until after init file load I think this is fine. All
terminals
I've worked with work fine with xterm-mouse-mode's defaults, but
since
there's so many different terminals I want to ensure user
compatibility
variables still work (currently just xterm-mouse-utf-8, I expect to
create a new one for bug #73469).
So this would require some changes in the code, to make sure the
escape sequences are delayed?
Yes, some changes, though they are straightforward.
Also, I expect this would only be done when the envvar TERM indicates
the user is on an xterm-compatible terminal.
How do we know which ones are compatible?
If Emacs decided to load term/xterm.el then the terminal advertised
itself as xterm compatible and I think we could enable
xterm-mouse-mode. There's no termcap entry for mouse support, sadly.