We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd5917 commit ef02068Copy full SHA for ef02068
crates/chat-cli/src/cli/chat/custom_spinner.rs
@@ -18,6 +18,12 @@ pub struct Spinners {
18
19
impl Spinners {
20
pub fn new(message: String) -> Self {
21
+ // Hide the cursor when starting the spinner
22
+ let _ = execute!(
23
+ std::io::stderr(),
24
+ cursor::Hide
25
+ );
26
+
27
let pb = ProgressBar::new_spinner();
28
pb.set_style(
29
ProgressStyle::default_spinner()
@@ -57,6 +63,7 @@ impl Drop for Spinners {
57
63
cursor::MoveToColumn(0),
58
64
terminal::Clear(terminal::ClearType::CurrentLine),
59
65
style::Print("\n"),
66
+ cursor::Show
60
67
);
61
68
}
62
69
0 commit comments