Fix example by adding RawScreen to use declaration (#193)

This commit is contained in:
runbmp 2019-08-16 10:52:42 -06:00 committed by Timon
parent 78dc8c704c
commit ec44719d2c

View File

@ -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.");