Fix example by adding RawScreen to use declaration (#193)
This commit is contained in:
parent
78dc8c704c
commit
ec44719d2c
@ -94,7 +94,7 @@ As you see, we check if the `KeyEvent::Esc` was pressed, if that's true we stop
|
|||||||
_final code_
|
_final code_
|
||||||
```rust
|
```rust
|
||||||
use std::{thread, time::Duration};
|
use std::{thread, time::Duration};
|
||||||
use crossterm::{input, InputEvent, KeyEvent};
|
use crossterm::{input, InputEvent, KeyEvent, RawScreen};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Press 'ESC' to quit.");
|
println!("Press 'ESC' to quit.");
|
||||||
|
Loading…
Reference in New Issue
Block a user