jeaye / ncurses-rs

A low-level ncurses wrapper for Rust
Other
685 stars 99 forks source link

ncurses requires a proper TERM env variable to compile, and fails on docs.rs #221

Open gyscos opened 3 months ago

gyscos commented 3 months ago

With the big 6.0 refactor, the constants generation done at build time now requires a proper TERM variable at compile time. While this is generally available when building from a terminal, a lot of building happens without a terminal (from an IDE, in CI, ...). In these environment, ncurses currently fails to build properly.

Builds on github CI require manually injecting TERM=xterm in the builder environment for all users of this library. For other environments like docs.rs, there is no clear way to make it build (which is why https://docs.rs/ncurses still shows the last version that still built, 5.101.0).

It would be a good idea to inject this TERM=xterm during the build process if no TERM is set.