Switch to the terminfo crate

This allows us to get the terminfo information without linking against curses.

That means we can get by without a bunch of awkward C-API trickery.

There is no global "cur_term" kept by a library for us that we need to invalidate.

Note that it still requires a "unhashed terminfo database", and I don't know how well it handles termcap.

I am not actually sure if there are systems that *can't* have terminfo, everything I looked at
has the ncurses terminfo available to install at least.
This commit is contained in:
Fabian Boehm
2024-01-25 21:39:45 +01:00
parent 2c2ab0c1fa
commit fc794bab4c
10 changed files with 260 additions and 424 deletions

View File

@@ -25,7 +25,6 @@ endif()
include(GNUInstallDirs)
add_definitions(-D_UNICODE=1)
include(cmake/ConfigureChecks.cmake)
include(cmake/gettext.cmake)
# Set up PCRE2