3 releases (breaking)

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

#10 in #buf

Download history 738/week @ 2024-03-17 467/week @ 2024-03-24 539/week @ 2024-03-31 370/week @ 2024-04-07 569/week @ 2024-04-14 331/week @ 2024-04-21 419/week @ 2024-04-28 499/week @ 2024-05-05 586/week @ 2024-05-12 608/week @ 2024-05-19 774/week @ 2024-05-26 491/week @ 2024-06-02 559/week @ 2024-06-09 729/week @ 2024-06-16 518/week @ 2024-06-23 336/week @ 2024-06-30

2,158 downloads per month
Used in 2 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

~2.5MB
~41K SLoC