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
|
2018-09-21 06:24:10 +10:00
|
|
|
//mod terminal;
|
2018-08-15 05:40:07 +10:00
|
|
|
mod color;
|
|
|
|
mod cursor;
|
|
|
|
mod some_types;
|
|
|
|
mod input;
|
2018-08-12 22:51:08 +10:00
|
|
|
|
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-09-21 06:24:10 +10:00
|
|
|
|
|
|
|
use crossterm::style::{style, Color, DisplayableObject};
|
|
|
|
use crossterm::terminal::terminal;
|
|
|
|
use crossterm::Screen;
|
|
|
|
|
2018-08-22 02:05:53 +10:00
|
|
|
fn main()
|
|
|
|
{
|
2018-09-21 06:24:10 +10:00
|
|
|
let screen = Screen::default();
|
|
|
|
|
|
|
|
println!("\nExample:\n\n\taws --profile {} s3 ls\n", DisplayableObject::new(&screen, &style("test").with(Color::Yellow)));
|
2018-08-12 22:51:08 +10:00
|
|
|
}
|