[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enabling Xterm-Mouse-Mode
From: |
Philip Kaludercic |
Subject: |
Re: Enabling Xterm-Mouse-Mode |
Date: |
Thu, 12 Dec 2024 16:48:32 +0000 |
Philip Kaludercic <philipk@posteo.net> writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> Date: Mon, 09 Dec 2024 22:22:06 -0800
>>> From: Jared Finder <jared@finder.org>
>>> Cc: philipk@posteo.net, Emacs-devel@gnu.org
>>>
>>> On 2024-12-08 08:35, Jared Finder wrote:
>>> > 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.
>>>
>>> Relying on term/xterm.el being loaded made the patch very
>>> straightforward because it gets loaded after user init files. Patch
>>> attached.
>>
>> Thanks, installed on the master branch.
>
> I am not sure if something else is broken on master, or if I made a
> mistake, but the patch doesn't appear to have any effect?
No, it was my mistake. It all works as intended, thanks Jared!
- Enabling Xterm-Mouse-Mode, Philip Kaludercic, 2024/12/06
- Re: Enabling Xterm-Mouse-Mode, Eli Zaretskii, 2024/12/06
- Re: Enabling Xterm-Mouse-Mode, Philip Kaludercic, 2024/12/06
- Re: Enabling Xterm-Mouse-Mode, Jared Finder, 2024/12/07
- Re: Enabling Xterm-Mouse-Mode, Eli Zaretskii, 2024/12/08
- Re: Enabling Xterm-Mouse-Mode, Jared Finder, 2024/12/08
- Re: Enabling Xterm-Mouse-Mode, Jared Finder, 2024/12/10
- Re: Enabling Xterm-Mouse-Mode, Eli Zaretskii, 2024/12/12
- Re: Enabling Xterm-Mouse-Mode, Philip Kaludercic, 2024/12/12
- Re: Enabling Xterm-Mouse-Mode,
Philip Kaludercic <=
- Re: Enabling Xterm-Mouse-Mode, Richard Stallman, 2024/12/08
- Re: Enabling Xterm-Mouse-Mode, Philip Kaludercic, 2024/12/08
- Re: Enabling Xterm-Mouse-Mode, Jared Finder, 2024/12/08
- Re: Enabling Xterm-Mouse-Mode, Richard Stallman, 2024/12/10
- Re: Enabling Xterm-Mouse-Mode, Jared Finder, 2024/12/11