mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
38bdc627a4
- new macros module, with sleep![] and cstring![] macros. - rename NCell constructors. - more plane methods. - improve doc comments.
21 lines
450 B
Rust
21 lines
450 B
Rust
use libnotcurses_sys::*;
|
|
|
|
fn main() {
|
|
unsafe {
|
|
let nc = Notcurses::new();
|
|
|
|
// use standard plane
|
|
let stdplane = notcurses_stdplane(nc);
|
|
|
|
for ch in "Initializing cells...".chars() {
|
|
let cell = NcCell::with_7bitchar(ch);
|
|
sleep![60];
|
|
ncplane_putc(&mut *stdplane, &cell);
|
|
let _ = notcurses_render(nc);
|
|
}
|
|
sleep![900];
|
|
|
|
notcurses_stop(nc);
|
|
}
|
|
}
|