notcurses/rust/examples/full-basics.rs

20 lines
445 B
Rust
Raw Normal View History

use libnotcurses_sys::*;
fn main() -> NcResult<()> {
unsafe {
let nc = Notcurses::new()?;
let stdplane = notcurses_stdplane(nc);
for ch in "Initializing cells...".chars() {
2020-12-24 01:47:26 +00:00
let cell = NcCell::with_char7b(ch);
sleep![60];
ncplane_putc(&mut *stdplane, &cell);
let _ = notcurses_render(nc);
}
sleep![900];
notcurses_stop(nc);
}
Ok(())
}