sneakers: clear screen
This commit is contained in:
parent
733693258c
commit
6f1e1fb3cf
@ -70,7 +70,7 @@ pub extern "C" fn rust_main() {
|
|||||||
|
|
||||||
if args.clear_screen {
|
if args.clear_screen {
|
||||||
unsafe {
|
unsafe {
|
||||||
nmstermio_set_clearscr(2);
|
nmstermio_set_clearscr(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,6 +19,11 @@ const foot2Center: &str = "[ ] Select Option or ESC to Abort";
|
|||||||
pub extern "C" fn rust_sneakers_effect() {
|
pub extern "C" fn rust_sneakers_effect() {
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
|
|
||||||
|
unsafe {
|
||||||
|
crate::nmstermio_set_clearscr(1);
|
||||||
|
}
|
||||||
|
|
||||||
let (term_width, _term_height) = crossterm::terminal::size().expect("Error reading terminal size");
|
let (term_width, _term_height) = crossterm::terminal::size().expect("Error reading terminal size");
|
||||||
let term_width = term_width as usize;
|
let term_width = term_width as usize;
|
||||||
let mut buf = String::new();
|
let mut buf = String::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user