mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 19:45: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>
52 lines
1.7 KiB
Rust
52 lines
1.7 KiB
Rust
extern crate termion;
|
|
|
|
use termion::{clear, color, cursor};
|
|
|
|
use std::{time, thread};
|
|
|
|
const COMMUNISM: &'static str = r#"
|
|
!######### #
|
|
!########! ##!
|
|
!########! ###
|
|
!########## ####
|
|
######### ##### ######
|
|
!###! !####! ######
|
|
! ##### ######!
|
|
!####! #######
|
|
##### #######
|
|
!####! #######!
|
|
####!########
|
|
## ##########
|
|
,######! !#############
|
|
,#### ########################!####!
|
|
,####' ##################!' #####
|
|
,####' ####### !####!
|
|
####' #####
|
|
~## ##~
|
|
"#;
|
|
|
|
fn main() {
|
|
let mut state = 0;
|
|
|
|
println!("\n{}{}{}{}{}{}",
|
|
cursor::Hide,
|
|
clear::All,
|
|
cursor::Goto(1, 1),
|
|
color::Fg(color::Black),
|
|
color::Bg(color::Red),
|
|
COMMUNISM);
|
|
loop {
|
|
println!("{}{} ☭ GAY ☭ SPACE ☭ COMMUNISM ☭ ",
|
|
cursor::Goto(1, 1),
|
|
color::Bg(color::AnsiValue(state)));
|
|
println!("{}{} WILL PREVAIL, COMRADES! ",
|
|
cursor::Goto(1, 20),
|
|
color::Bg(color::AnsiValue(state)));
|
|
|
|
state += 1;
|
|
state %= 8;
|
|
|
|
thread::sleep(time::Duration::from_millis(90));
|
|
}
|
|
}
|