mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
797ef4b0ae
- raw field of new wrapping structs is now public just to the crate. - NcNotcurses.stdplane method now doesn't return an NcResult since it can't fail. - rename NcNotcurses to Notcurses and NcNotcursesOptions to NotcursesOptions. - rename NcPlane::new_termsize constructor to with_termsize. - bump MSV to 1.48 for the doc links. - improve lib documentation. - minor fixes.
16 lines
320 B
Rust
16 lines
320 B
Rust
use libnotcurses_sys::*;
|
|
|
|
fn main() -> NcResult<()> {
|
|
let mut nc = FullMode::new()?;
|
|
let stdplane = nc.stdplane();
|
|
|
|
for ch in "Initializing cells...".chars() {
|
|
let cell = NcCell::with_char7b(ch);
|
|
stdplane.putc(&cell)?;
|
|
rsleep![&mut nc, 0, 40];
|
|
}
|
|
sleep![0, 900];
|
|
|
|
Ok(())
|
|
}
|