Crates.io | ansi_codes |
lib.rs | ansi_codes |
version | 0.2.1 |
source | src |
created_at | 2022-11-23 15:47:34.752083 |
updated_at | 2023-01-16 12:00:17.685271 |
description | Hide or show the cursor, set the cursor position, clear the terminal |
homepage | |
repository | |
max_upload_size | |
id | 721720 |
size | 16,985 |
use ansi_codes::{
ansi::{hide_cursor, set_cursor_position, show_cursor},
clear,
};
fn main() {
clear();
hide_cursor();
// show_cursor();
println!("Hello World!");
println!("Hello World!");
println!("Hello World!");
println!("Hello World!");
set_cursor_position(2, 3);
println!("\x1b[48;5;70m123456\x1b[0m");
loop {
}
}