You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notcurses/rust/examples/full-basics.rs

18 lines
346 B
Rust

use libnotcurses_sys::*;
fn main() -> NcResult<()> {
let nc = Notcurses::new()?;
let stdplane = nc.stdplane()?;
for ch in "Initializing cells...".chars() {
let cell = NcCell::with_char7b(ch);
stdplane.putc(&cell)?;
sleep![0, 40];
nc.render()?;
}
sleep![0, 900];
nc.stop()?;
Ok(())
}