bring terminfo back into windows build #2014

dankamongmen/iterm2complete
nick black 3 years ago committed by nick black
parent a77adfac3d
commit dd8700bddd

@ -33,6 +33,7 @@ jobs:
mingw-w64-ucrt-x86_64-doctest
mingw-w64-ucrt-x86_64-ffmpeg
mingw-w64-ucrt-x86_64-libunistring
mingw-w64-ucrt-x86_64-ncurses
mingw-w64-ucrt-x86_64-rust
mingw-w64-ucrt-x86_64-toolchain

@ -103,7 +103,6 @@ if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
endif()
# some distros (<cough>motherfucking alpine</cough> subsume terminfo directly
# into ncurses. accept either, and may god have mercy on our souls.
if(NOT WIN32)
pkg_search_module(TERMINFO REQUIRED tinfo>=6.1 ncursesw>=6.1)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND terminfo)
set_package_properties(terminfo PROPERTIES TYPE REQUIRED)

@ -12,6 +12,8 @@ extern "C" {
#include <term.h>
#include <ncurses.h>
#include <time.h>
#include <term.h>
#include <ncurses.h> // needed for some definitions, see terminfo(3ncurses)
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>

Loading…
Cancel
Save