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
|
2019-01-01 05:55:48 +11:00
|
|
|
mod color;
|
|
|
|
mod cursor;
|
|
|
|
mod input;
|
2018-11-26 00:17:11 +11:00
|
|
|
//mod some_types;
|
2019-01-01 05:55:48 +11:00
|
|
|
mod terminal;
|
2018-08-12 22:51:08 +10:00
|
|
|
|
2019-01-01 05:55:48 +11:00
|
|
|
fn main() {
|
2019-01-02 08:27:50 +11:00
|
|
|
let cursor = crossterm::cursor();
|
2019-01-03 02:53:47 +11:00
|
|
|
cursor.goto(5, 5);
|
2019-01-01 05:55:48 +11:00
|
|
|
|
2019-01-02 08:27:50 +11:00
|
|
|
let integer = 10;
|
|
|
|
let float: f32 = integert as f32;
|
2019-01-01 05:55:48 +11:00
|
|
|
|
2019-01-02 08:27:50 +11:00
|
|
|
println!("5.515151");
|
2019-01-01 05:55:48 +11:00
|
|
|
}
|