3 releases (breaking)

0.3.0 Jun 27, 2021
0.2.0 Feb 1, 2021
0.1.0 Feb 1, 2021

#13 in #buf

Download history 382/week @ 2024-10-30 426/week @ 2024-11-06 321/week @ 2024-11-13 397/week @ 2024-11-20 506/week @ 2024-11-27 421/week @ 2024-12-04 328/week @ 2024-12-11 322/week @ 2024-12-18 131/week @ 2024-12-25 178/week @ 2025-01-01 191/week @ 2025-01-08 631/week @ 2025-01-15 356/week @ 2025-01-22 285/week @ 2025-01-29 560/week @ 2025-02-05 426/week @ 2025-02-12

1,855 downloads per month
Used in 3 crates

Unlicense

9KB
146 lines

Liveterm

Print stuff to the terminal, remove it, repeat!

Here's how to use it:

let mut tp = TermPrinter::new(std::io::stdout());
for i in 0..10 {
    tp.clear()?;              // clear what we draw last time
    tp.buf.clear();           // clear the buffer
    write!(tp.buf, "{}", i)?; // fill the buffer
    tp.print()?;              // draw the buffer
}

lib.rs:

Print stuff to the terminal, remove it, repeat!

Here's how to use it:

use liveterm::TermPrinter;
use std::fmt::Write;
let mut tp = TermPrinter::new(std::io::stdout());
for i in 0..10 {
tp.clear()?;              // clear what we draw last time
tp.buf.clear();           // clear the buffer
write!(tp.buf, "{}", i)?; // fill the buffer
tp.print()?;              // draw the buffer
}

Dependencies

~3.5MB
~60K SLoC