mirror of
https://github.com/xvxx/phetch
synced 2024-11-10 13:10:54 +00:00
restore cursor
This commit is contained in:
parent
6a93b7537a
commit
5cfb781a3a
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user