2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-10 13:10:54 +00:00

restore cursor

This commit is contained in:
dvkt 2019-12-21 14:01:05 -08:00
parent 6a93b7537a
commit 5cfb781a3a

View File

@ -195,12 +195,13 @@ impl UI {
return; return;
} }
print!( print!(
"\r{}{}{}{}{}", "\r{}{}{}{}{}{}",
termion::cursor::Hide, termion::cursor::Hide,
label, label,
".".repeat(i), ".".repeat(i),
termion::clear::AfterCursor, termion::clear::AfterCursor,
color::Fg(color::Reset) color::Fg(color::Reset),
termion::cursor::Show,
); );
stdout().flush(); stdout().flush();
thread::sleep(Duration::from_millis(350)); thread::sleep(Duration::from_millis(350));