mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 13:15:00 +00:00
refactor: Prune spinner animation frames and char assignments
This commit is contained in:
parent
01592afac3
commit
0864a7ca76
1 changed files with 2 additions and 4 deletions
|
@ -278,18 +278,16 @@ class Spinner:
|
||||||
[-----#=]
|
[-----#=]
|
||||||
[----#=-]
|
[----#=-]
|
||||||
[---#=--]
|
[---#=--]
|
||||||
[---#=--]
|
|
||||||
[---#=--]
|
|
||||||
[--#=---]
|
[--#=---]
|
||||||
[-#=----]
|
[-#=----]
|
||||||
""".strip().splitlines()
|
""".strip().splitlines()
|
||||||
|
|
||||||
# If unicode is supported, swap the ASCII chars for nicer glyphs.
|
# If unicode is supported, swap the ASCII chars for nicer glyphs.
|
||||||
if self._supports_unicode():
|
if self._supports_unicode():
|
||||||
scan_char, _, trail_char = "≡", "=", "─"
|
scan_char, trail_char = "≡", "─"
|
||||||
frames = [f.replace("#", scan_char).replace("-", trail_char) for f in ascii_frames]
|
frames = [f.replace("#", scan_char).replace("-", trail_char) for f in ascii_frames]
|
||||||
else:
|
else:
|
||||||
scan_char, _, _ = "#", "=", "-"
|
scan_char, _ = "#", "-"
|
||||||
frames = ascii_frames
|
frames = ascii_frames
|
||||||
|
|
||||||
# Bounce the scanner back and forth.
|
# Bounce the scanner back and forth.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue