minicrossterm/examples/Crossterm 0.3.1/bin.rs
2018-07-29 21:30:09 +02:00

35 lines
734 B
Rust

//! 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;
use crossterm::Crossterm;
use crossterm::style::Color;
// mod terminal;
// mod color;
// mod cursor;
// mod crossterm_type;
// mod input;
//use input::keyboard::{async_input, input as stdin};
use std::{thread, time};
fn main() {
use crossterm::Crossterm;
let mut term = Crossterm::new();
let cursor = term.cursor();
let a = term.color();
}