libnotcurses-sys 3.9.1

Low-level Rust bindings for the notcurses C library.
Documentation
1
2
3
4
5
6
7
8
9
10
use libnotcurses_sys::*;

fn main() -> NcResult<()> {
    let nc = unsafe { Nc::new_cli()? };
    let stdplane = unsafe { nc.stdplane() };
    stdplane.putstr("\nhello world!\n")?;
    nc.render()?;
    unsafe { nc.stop()? }; // always stop before exiting
    Ok(())
}