rust: Continue with poc-menu example.
- add NcPlane.pustr_aligned() method. - disable notcurses_stddim_yx* functions & methods for now. - make input argument optional for notcurses_getc_nblocking(). - update full-basics example. - fix comments.pull/1270/head
parent
e522429dfb
commit
8e5e60f588
@ -1,19 +1,18 @@
|
||||
use libnotcurses_sys::*;
|
||||
|
||||
fn main() -> NcResult<()> {
|
||||
unsafe {
|
||||
let nc = Notcurses::new()?;
|
||||
let stdplane = notcurses_stdplane(nc);
|
||||
let nc = Notcurses::new()?;
|
||||
let stdplane = nc.stdplane()?;
|
||||
let p1 = NcPlane::new(nc, 0, 0, 20, 30);
|
||||
|
||||
for ch in "Initializing cells...".chars() {
|
||||
let cell = NcCell::with_char7b(ch);
|
||||
sleep![60];
|
||||
ncplane_putc(&mut *stdplane, &cell);
|
||||
let _ = notcurses_render(nc);
|
||||
}
|
||||
sleep![900];
|
||||
|
||||
notcurses_stop(nc);
|
||||
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(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue