2019-09-14 07:29:56 +10:00
|
|
|
use std::io::stdout;
|
2019-01-28 07:16:14 +11:00
|
|
|
|
2019-04-11 07:46:30 +10:00
|
|
|
use crossterm_screen::{IntoRawMode, RawScreen};
|
2019-01-28 07:16:14 +11:00
|
|
|
|
2019-09-14 07:29:56 +10:00
|
|
|
#[allow(unused_variables)]
|
|
|
|
fn main() {
|
2019-06-22 02:10:46 +10:00
|
|
|
// create a Screen instance that operates on the default output: io::stdout(). By passing in 'true', we make this screen 'raw'
|
2019-04-11 07:46:30 +10:00
|
|
|
let screen = RawScreen::into_raw_mode();
|
|
|
|
let screen = stdout().into_raw_mode();
|
2019-01-28 07:16:14 +11:00
|
|
|
|
2019-04-11 07:46:30 +10:00
|
|
|
// raw screen will be disabled when it goes out of scope.
|
2019-01-28 07:16:14 +11:00
|
|
|
}
|