minicrossterm/examples/bin.rs

26 lines
564 B
Rust
Raw Normal View History

2018-01-04 00:43:54 +11:00
extern crate crossterm;
use self::crossterm::terminal_style::{paint,Color};
use self::crossterm::terminal_cursor::cursor;
use std::io::Write;
fn main()
{
cursor::get().move_down(1);
print!("2");
std::io::stdout().flush().expect("asdf");
cursor::get().move_down(1);
print!("3");
std::io::stdout().flush().expect("asdf");
cursor::get().move_down(1);
print!("4");
std::io::stdout().flush().expect("asdf");
cursor::get().move_down(1);
print!("5");
std::io::stdout().flush().expect("asdf");
}