2018-01-28 04:26:08 +11: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`
|
|
|
|
|
2018-06-10 05:53:35 +10:00
|
|
|
// Import crossterm crate.
|
2018-01-04 00:43:54 +11:00
|
|
|
extern crate crossterm;
|
2018-01-10 06:36:48 +11:00
|
|
|
|
2018-06-10 05:53:35 +10:00
|
|
|
// Add the usings for the crossterms modules to play with crossterm
|
|
|
|
use self::crossterm::crossterm_style;
|
|
|
|
use self::crossterm::crossterm_cursor;
|
|
|
|
use self::crossterm::crossterm_terminal;
|
|
|
|
|
|
|
|
// Import the example modules.
|
|
|
|
pub mod color;
|
|
|
|
pub mod cursor;
|
|
|
|
pub mod terminal;
|
2018-03-06 08:06:43 +11:00
|
|
|
|
2018-01-18 09:06:45 +11:00
|
|
|
fn main() {
|
2018-06-10 05:53:35 +10:00
|
|
|
|
|
|
|
}
|