Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
term: Use `\r` for spinner
cloudhead committed 2 years ago
commit 7c842bcc1d392184846cb67082850794f4fb0602
parent 499738de711ee96343163550f2e053bdba248c1a
1 file changed +1 -4
modified radicle-term/src/spinner.rs
@@ -137,14 +137,11 @@ pub fn spinner_to(

                            write!(
                                animation,
-
                                "{}{}{spinner} {message}",
-
                                termion::cursor::Save,
+
                                "{}{spinner} {message}\r",
                                termion::clear::AfterCursor,
                            )
                            .ok();

-
                            write!(animation, "{}", termion::cursor::Restore).ok();
-

                            *cursor += 1;
                            *cursor %= DEFAULT_STYLE.len();
                        }