po 1. 9. 2025 v 2:17 odesílatel Thomas Dickey <[email protected]> napsal:

> On Sun, Aug 31, 2025 at 01:53:44PM -0400, Thomas Dickey wrote:
> > On Sun, Aug 31, 2025 at 02:54:16PM +0200, Jakub Horký wrote:
> > > Hi,
> > >
> > > I've made several fixes in terminfo:
> > >
> > > *1) Abandon ancient vt100+keypad mapping for "cross" keypad keys, unify
> > > vt100+keypad and vt220+keypad, and include extended caps for them*
>
> by the way, extended caps aren't visible to termcap users, and moving
> the standard (not the extended) caps around would impact them.
>
> For example, vim (noting that it has builtin stuff, but still a problem)
>

I know, but even termcap-based apps can't rely on termcap if it gives them
malformed cap definitions for some random subset of terminals. It's nice
that the app has all the escape sequences placed "somewhere" where there
was room for them for this random subset of terminals, but it's useless
when the app doesn't know which key the sequence really belongs to. And to
be honest, the terminfo library has been there as an alternative for more
than 30 years.

Vim is just an example of this: Malformed cap definitions for vt100+keypad
and its inheritants are the reason why Vim, when run over PuTTY
(TERM=putty), incorrectly treats keypad 1/End as 7/Home and 3/PgDn as
9/PgUp.

The effort to fix this problem is just one of reasons why vim has
builtin stuff (but not for PuTTY though).

Jakub

Reply via email to