#Build ncurses 5.9 with MinGW
- Download
http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
- Modify Code
ncurses-5.9\ncurses\lib_keyname.c
line 174/282/284/316, remove newline before \0.
- Build
$ ./configure \
--prefix=/mingw \
--without-cxx-binding \
--without-ada \
--enable-warnings \
--enable-assertions \
--enable-reentrant \
--with-debug \
--with-normal \
--disable-home-terminfo \
--enable-sp-funcs \
--enable-term-driver \
--enable-interop
$ make
$ make install