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