Tested unix improved some exampels
This commit is contained in:
parent
ff41d4f244
commit
29ae520ea8
@ -1,6 +1,6 @@
|
||||
extern crate crossterm;
|
||||
|
||||
use crossterm::{Screen, Crossterm, screen};
|
||||
use crossterm::{Screen, Crossterm};
|
||||
use crossterm::terminal::{terminal,Terminal, ClearType};
|
||||
use crossterm::cursor::{TerminalCursor, cursor};
|
||||
use crossterm::input::input;
|
||||
|
@ -28,9 +28,8 @@ pub fn run()
|
||||
print_welcome_screen();
|
||||
|
||||
// This is represents the current screen.
|
||||
let screen = Screen::new(true);
|
||||
let mut screen = Screen::new(true);
|
||||
start_algorithm(&screen);
|
||||
drop(screen);
|
||||
}
|
||||
|
||||
fn start_algorithm(screen: &Screen)
|
||||
@ -54,7 +53,8 @@ fn start_algorithm(screen: &Screen)
|
||||
|
||||
fn print_welcome_screen()
|
||||
{
|
||||
let screen = Screen::default();
|
||||
let mut screen = Screen::new(true);
|
||||
|
||||
let crossterm = Crossterm::new(&screen);
|
||||
|
||||
// create the handle for the cursor and terminal.
|
||||
|
Loading…
Reference in New Issue
Block a user