draw spinner at bottom

pull/6/head
dvkt 5 years ago
parent d11c0f0a6d
commit 39043d1a06

@ -188,13 +188,15 @@ impl UI {
let (tx, rx) = mpsc::channel();
let label = label.to_string();
let rows = self.rows() as u16;
thread::spawn(move || loop {
for i in 0..=3 {
if rx.try_recv().is_ok() {
return;
}
print!(
"\r{}{}{}{}{}{}",
"{}{}{}{}{}{}{}",
termion::cursor::Goto(1, rows),
termion::cursor::Hide,
label,
".".repeat(i),

Loading…
Cancel
Save