mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
rust: minor examples updates
This commit is contained in:
parent
ae2af14281
commit
36a7355cd8
@ -31,7 +31,6 @@ fn main() -> NcResult<()> {
|
||||
|
||||
println!("\nExiting...");
|
||||
|
||||
rsleep![&mut nc, 1, 500];
|
||||
nc.stop()?;
|
||||
rsleep![&mut nc, 1];
|
||||
Ok(())
|
||||
}
|
||||
|
@ -54,8 +54,11 @@ fn main() -> NcResult<()> {
|
||||
let voptions = NcVisualOptions::without_plane(1, 2, 0, 0, cell_y, cell_x, NCBLIT_PIXEL, 0);
|
||||
pixels.render(&mut nc, &voptions)?;
|
||||
|
||||
rsleep![&mut nc, 10];
|
||||
// FIXME: segfaults
|
||||
// let mut stdplane = nc.stdplane();
|
||||
// let mut vplane = NcPlane::new_bound(&mut stdplane, 0, 0, 4, 4)?
|
||||
|
||||
rsleep![&mut nc, 10];
|
||||
pixels.destroy();
|
||||
|
||||
Ok(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user