minicrossterm/examples/examples.rs

26 lines
574 B
Rust
Raw Normal View History

//! 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
mod terminal;
mod color;
mod cursor;
mod some_types;
mod input;
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();
terminal::raw_mode::print_wait_screen_on_alternate_window();
2018-08-22 05:17:53 +10:00
thread::sleep(time::Duration::from_millis(2000));
}