chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

30
vendor/console/examples/cursor_at.rs vendored Normal file
View File

@@ -0,0 +1,30 @@
extern crate console;
use std::io;
use std::thread;
use std::time::Duration;
use console::{style, Term};
fn write_chars() -> io::Result<()> {
let term = Term::stdout();
let (height, width) = term.size();
for x in 0..width {
for y in 0..height {
term.move_cursor_to(x as usize, y as usize)?;
let text = if (x + y) % 2 == 0 {
format!("{}", style(x % 10).black().on_red())
} else {
format!("{}", style(x % 10).red().on_black())
};
term.write_str(&text)?;
thread::sleep(Duration::from_micros(600));
}
}
Ok(())
}
fn main() {
write_chars().unwrap();
}