mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-01 19:15:46 +00:00
d5f5648b37
We use cargo vendor to generate a .cargo/config file and the vendor directory. Vendoring allows us to lock our dependencies and to modify them easily from the top level Cargo.toml. We vendor all dependencies, including the crates.io ones, which allows for network isolated builds. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
18 lines
471 B
Rust
18 lines
471 B
Rust
extern crate termion;
|
|
|
|
use termion::screen::*;
|
|
use std::io::{Write, stdout};
|
|
use std::{time, thread};
|
|
|
|
fn main() {
|
|
{
|
|
let mut screen = AlternateScreen::from(stdout());
|
|
write!(screen, "Welcome to the alternate screen.\n\nPlease wait patiently until we arrive back at the main screen in a about three seconds.").unwrap();
|
|
screen.flush().unwrap();
|
|
|
|
thread::sleep(time::Duration::from_secs(3));
|
|
}
|
|
|
|
println!("Phew! We are back.");
|
|
}
|