minicrossterm/examples/Crossterm 0.2.2 - New Version (Not finished)/bin.rs

38 lines
831 B
Rust
Raw Normal View History

//! 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-01-04 00:43:54 +11:00
extern crate crossterm;
mod terminal;
mod cursor;
mod color;
use terminal::alternate_screen;
use terminal::raw_mode;
use terminal::terminal as term;
use self::crossterm::Context;
use self::crossterm::terminal::ClearType;
use crossterm::raw;
use crossterm::screen;
use crossterm::raw::IntoRawMode;
use std::io::Write;
use std::{time, thread};
2018-06-27 04:21:47 +10:00
use std::process::exit;
fn main() {
let context = Context::new();
2018-06-27 05:28:25 +10:00
alternate_screen::print_wait_screen_on_alternate_window();
2018-03-04 01:40:51 +11:00
}