ansi_codes

Crates.ioansi_codes
lib.rsansi_codes
version0.2.1
sourcesrc
created_at2022-11-23 15:47:34.752083
updated_at2023-01-16 12:00:17.685271
descriptionHide or show the cursor, set the cursor position, clear the terminal
homepage
repository
max_upload_size
id721720
size16,985
Karl (blueteary)

documentation

README

ANSI escape code

Examples

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 {
        
    }
}
Commit count: 0

cargo fmt