> On Sat, 24 Jun 2023 19:35:47 +0100
> Bram Moolenaar <Bram@moolenaar.net> wrote:
> > You need to tell Vim to recognize these escape sequences:
> >
> > execute "set <FocusGained>=\<Esc>[I"
> > execute "set <FocusLost>=\<Esc>[O"
> >
> > Since this is quite common it was made the default in patch 9.0.1619.
> > You only need to define the escape sequences for older Vim versions.
>
> Interesting. I wondered why it was there in the help doc but Vim didn't
> seem to need it. Thank you for the clarification.
I have been working on the terminal configuration support, removing
built-in hard coded values and depending more on termcap/terminfo.
Unfortunately, the latter has not been kept up-to-date for recently added
terminal features. Partly to blame on Vim's built-in support for xterm
and terminals declaring themselves to be xterm-compatible (even though
that's not 100% true). Result is that there was hardly any motivation
to make termcap/terminfo work better.
I'm trying to make support for various terminals work "properly", but it
is quite a struggle, it will take time. I hope terminal emulator
authors will cooperate, but there is a tendency of having a different
opinion of what "properly" is. This can lead to very long discussions
without a clear outcome. To avoid getting stuck I may sometimes pull
the "dictator" card and decide what is best for Vim.
For example, for supporting modifiers on special keys there is the
"modifyOtherKeys" protocol (supported by xterm and a few others). But
for some this was considered insufficient and the Kitty keyboard
protocol was added (which for a large part does the same thing, but with
some differences that helps some users and makes it complicated for
others).
The first step is to agree on how to make it work, then convince enough
people to implement it that way. Hopefully we then have enough traction
that others will follow.
For the keyboard protocol support I didn't see a way to convince all
terminal authors to support modifyOtherKeys or Kitty, thus I chose to
support both. It's a bit tricky, but it looks like it is working OK
now.
--
hundred-and-one symptoms of being an internet addict:
240. You think Webster's Dictionary is a directory of WEB sites.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20230626153549.112B71C054C%40moolenaar.net.
No comments:
Post a Comment