console_static_text 0.8.3

Logging for text that should stay in the same place in a console.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use console_static_text::ConsoleStaticText;
use std::time::Duration;

fn main() {
  let mut static_text = ConsoleStaticText::new_sized().unwrap();

  for i in 0..200 {
    static_text.eprint(&i.to_string());
    std::thread::sleep(Duration::from_millis(30));
  }

  static_text.eprint_clear();
}