2022-06-29 17:23:01 +00:00
|
|
|
use crate::api::process::ExitCode;
|
|
|
|
|
2020-07-11 18:33:55 +00:00
|
|
|
use alloc::format;
|
2020-02-03 08:33:30 +00:00
|
|
|
|
2022-06-29 17:23:01 +00:00
|
|
|
pub fn main(_args: &[&str]) -> Result<(), ExitCode> {
|
2020-07-10 06:18:34 +00:00
|
|
|
let csi_reset = "\x1b[0m";
|
2020-02-03 08:33:30 +00:00
|
|
|
|
2020-07-10 06:18:34 +00:00
|
|
|
for i in 30..38 {
|
|
|
|
let csi_color = format!("\x1b[{};40m", i);
|
|
|
|
print!(" {}{:3}{}", csi_color, i, csi_reset);
|
2020-02-03 08:33:30 +00:00
|
|
|
}
|
2021-07-25 10:41:44 +00:00
|
|
|
println!();
|
2020-07-10 06:18:34 +00:00
|
|
|
for i in 90..98 {
|
|
|
|
let csi_color = format!("\x1b[{};40m", i);
|
|
|
|
print!(" {}{:3}{}", csi_color, i, csi_reset);
|
|
|
|
}
|
2021-07-25 10:41:44 +00:00
|
|
|
println!();
|
2020-07-10 06:18:34 +00:00
|
|
|
for i in 40..48 {
|
|
|
|
let csi_color = format!("\x1b[30;{}m", i);
|
|
|
|
print!(" {}{:3}{}", csi_color, i, csi_reset);
|
|
|
|
}
|
2021-07-25 10:41:44 +00:00
|
|
|
println!();
|
2020-07-10 06:18:34 +00:00
|
|
|
for i in 100..108 {
|
|
|
|
let csi_color = format!("\x1b[30;{}m", i);
|
|
|
|
print!(" {}{:3}{}", csi_color, i, csi_reset);
|
2020-02-03 08:33:30 +00:00
|
|
|
}
|
2021-07-25 10:41:44 +00:00
|
|
|
println!();
|
2020-02-03 08:33:30 +00:00
|
|
|
|
2022-06-29 17:23:01 +00:00
|
|
|
Ok(())
|
2020-02-03 08:33:30 +00:00
|
|
|
}
|