mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
style: Improve spinner display order and output
This commit is contained in:
parent
c706663841
commit
b236e0c801
1 changed files with 2 additions and 2 deletions
|
@ -301,7 +301,7 @@ class Spinner:
|
||||||
if not self.is_tty:
|
if not self.is_tty:
|
||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
sys.stdout.write("≡\b─\b")
|
sys.stdout.write("≡\b─\b \b")
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
return True
|
return True
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
|
@ -329,7 +329,7 @@ class Spinner:
|
||||||
self.last_update = now
|
self.last_update = now
|
||||||
frame = self._next_frame()
|
frame = self._next_frame()
|
||||||
|
|
||||||
sys.stdout.write(f"\r{self.text} {frame}")
|
sys.stdout.write(f"\r{frame} {self.text}")
|
||||||
|
|
||||||
# Backspace cursor to the scanner character
|
# Backspace cursor to the scanner character
|
||||||
pos_in_content = frame.find(self.scan_char) - 1 # exclude '['
|
pos_in_content = frame.find(self.scan_char) - 1 # exclude '['
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue