2018-08-12 22:51:08 +10:00
|
|
|
|
|
|
|
//! This bin folder can be used to try the examples out located in the examples directory.
|
|
|
|
//!
|
|
|
|
//! All you need to do is:
|
|
|
|
//!
|
|
|
|
//! - Download the crossterm source code.
|
|
|
|
//! - Run program with: `cargo run --example examples`
|
|
|
|
|
|
|
|
extern crate crossterm;
|
|
|
|
|
|
|
|
// modules that could be test
|
2018-08-15 05:40:07 +10:00
|
|
|
mod terminal;
|
|
|
|
mod color;
|
|
|
|
mod cursor;
|
|
|
|
mod some_types;
|
|
|
|
mod input;
|
2018-08-12 22:51:08 +10:00
|
|
|
|
2018-08-22 02:05:53 +10:00
|
|
|
use std::io::Write;
|
2018-08-22 05:17:53 +10:00
|
|
|
use std::{thread,time};
|
2018-08-22 02:05:53 +10:00
|
|
|
fn main()
|
|
|
|
{
|
2018-08-24 02:15:18 +10:00
|
|
|
input::keyboard::async_input::read_async_demo();
|
2018-08-23 03:58:30 +10:00
|
|
|
terminal::raw_mode::print_wait_screen_on_alternate_window();
|
2018-08-22 05:17:53 +10:00
|
|
|
thread::sleep(time::Duration::from_millis(2000));
|
2018-08-12 22:51:08 +10:00
|
|
|
}
|