mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +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
|
||||
|
||||
def _step(self):
|
||||
if self.visible:
|
||||
print(f" {self.text} {next(self.io.spinner_chars)}", end="\r", flush=True)
|
||||
if not self.visible:
|
||||
return
|
||||
|
||||
print(f"\r{self.text} {next(self.io.spinner_chars)}\r{self.text} ", end="", flush=True)
|
||||
|
||||
def end(self):
|
||||
if self.visible:
|
||||
print(" " * (len(self.text) + 3))
|
||||
print("\r" + " " * (len(self.text) + 3))
|
||||
|
||||
|
||||
class AutoCompleter(Completer):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue