git: 2a50a9de8340 - main - terminfo: add terminfo database

Jan Beich jbeich at FreeBSD.org
Fri Feb 26 20:19:39 UTC 2021


Cy Schubert writes:
> Baptiste Daroussin writes:
>> I was planning to MFC it to 13.1, I don't know how much this change
>> is a POLA violation or not, imho all the other benefice of terminfo
>> over termcap for end users are worth the MFC, but if most people
>> vote against, I won't MFC it.
>
> I think this is big enough not to MFC to 13.1.

To keep POLA on 13.1 ncurses needs to look into termcap and if it can't
find a match there look into terminfo. Old entries like xterm would keep
working like before (ti/te disabled) while new entries like xterm-direct2,
alacritty, etc. will behave like upstream intended (smcup/rmcup enabled).
However, I haven't looked into ncurses source how easy it'd be to implement.

>From ports/ perspective having terminfo as fallback would be enough.
termcap -> terminfo conversion is often lossy and requires writing
outside of /usr/local (aka PREFIX). For example, many modern terminals
source xterm-256color but it's not maintained (e.g., bug 247447)


More information about the dev-commits-src-main mailing list