~asayers/liveterm

Simple live-updating output for CLI apps
Bump version to 0.3
Upgrade to crossterm 0.20; remove Error
Don't try to print anything if the buffer is empty

clone

read-only
https://git.sr.ht/~asayers/liveterm
read/write
git@git.sr.ht:~asayers/liveterm

You can also use your local clone with git send-email.

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