ansi_codes 0.2.1

Hide or show the cursor, set the cursor position, clear the terminal
Documentation
  • Coverage
  • 0.74%
    2 out of 269 items documented0 out of 4 items with examples
  • Size
  • Source code size: 16.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.73 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cradiy blueteary

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 {
        
    }
}