mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
fix: Improve spinner behavior
This commit is contained in:
parent
95e603350c
commit
49874cb8a1
1 changed files with 5 additions and 3 deletions
|
@ -41,12 +41,14 @@ class Spinner:
|
||||||
self.last_update = current_time
|
self.last_update = current_time
|
||||||
|
|
||||||
def _step(self):
|
def _step(self):
|
||||||
if self.visible:
|
if not self.visible:
|
||||||
print(f" {self.text} {next(self.io.spinner_chars)}", end="\r", flush=True)
|
return
|
||||||
|
|
||||||
|
print(f"\r{self.text} {next(self.io.spinner_chars)}\r{self.text} ", end="", flush=True)
|
||||||
|
|
||||||
def end(self):
|
def end(self):
|
||||||
if self.visible:
|
if self.visible:
|
||||||
print(" " * (len(self.text) + 3))
|
print("\r" + " " * (len(self.text) + 3))
|
||||||
|
|
||||||
|
|
||||||
class AutoCompleter(Completer):
|
class AutoCompleter(Completer):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue