Overall, the thinness of this wrapper puts it into an uncomfortable middle ground between C and Rust which is still unsafe and not very Rustic. It'd b

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-12-26 01:30:04

Overall, the thinness of this wrapper puts it into an uncomfortable middle ground between C and Rust which is still unsafe and not very Rustic. It'd be better to use either C interop directly or something altogether safer. I made ncurses-rs in 2015, when the Rust landscape was very different.

Note that you must to have the ncurses library installed and linkable for ncurses-rs to work. On Linux, this should be trivial. On OS X, consider installing ncurses using Homebrew. (Note that you have to force Homebrew to link the library to /usr/local/lib: brew link --force ncurses and set that path to LIBRARY_PATH environmental variable.)

Examples are built by cargo build. To run them, use cargo run --example ex_<NUMBER>. Example numbers increase along with the complexity of the example.

Current examples: 1. Hello World 2. Basic Input & Attributes 3. Simple Pager 4. Window Movement 5. Menu Library (requires rust nightly) 6. Pager & Syntax Highlighting 7. Basic Input & Attributes (Unicode) 8. Special ACS Characters

Leave a Comment