2018-07-21 02:00:46 +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.
|
|
|
|
//! - Add this in the Cargo.toml file:
|
|
|
|
//! ``` [[bin]]
|
|
|
|
//! name = "example_bin"
|
|
|
|
//! path = "./examples/bin.rs"
|
|
|
|
//! ```
|
|
|
|
//!
|
|
|
|
//! - Run program with: `cargo run`
|
|
|
|
extern crate crossterm;
|
|
|
|
|
2018-07-29 03:26:35 +10:00
|
|
|
use crossterm::Crossterm;
|
|
|
|
use crossterm::style::Color;
|
2018-07-21 02:00:46 +10:00
|
|
|
|
|
|
|
// mod terminal;
|
|
|
|
// mod color;
|
|
|
|
// mod cursor;
|
|
|
|
// mod crossterm_type;
|
2018-07-28 02:44:38 +10:00
|
|
|
// mod input;
|
2018-07-21 02:00:46 +10:00
|
|
|
|
2018-07-28 02:44:38 +10:00
|
|
|
//use input::keyboard::{async_input, input as stdin};
|
2018-07-21 21:11:31 +10:00
|
|
|
|
2018-07-22 22:55:14 +10:00
|
|
|
use std::{thread, time};
|
2018-07-21 21:11:31 +10:00
|
|
|
|
2018-07-22 22:55:14 +10:00
|
|
|
fn main() {
|
2018-07-30 05:30:09 +10:00
|
|
|
use crossterm::Crossterm;
|
|
|
|
|
|
|
|
let mut term = Crossterm::new();
|
|
|
|
let cursor = term.cursor();
|
|
|
|
let a = term.color();
|
2018-07-28 18:09:09 +10:00
|
|
|
}
|