Skip to content

Commit 4d5852a

Browse files
committed
chore: Refine ASCII spinner animation
1 parent 7a5877e commit 4d5852a

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

aider/utils.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -270,18 +270,18 @@ def __init__(self, text: str, width: int = 7):
270270
# Pre-render the animation frames using pure ASCII so they will
271271
# always display, even on very limited terminals.
272272
ascii_frames = [
273-
" #= | ",
274-
" =# | ",
275-
" =# | ",
276-
" =# | ",
277-
" =# | ",
278-
" =# | ",
279-
" =# | ",
280-
" #= | ",
281-
" #= | ",
282-
" #= | ",
283-
" #= | ",
284-
" #= | ",
273+
"#= ",
274+
"=# ",
275+
" =# ",
276+
" =# ",
277+
" =# ",
278+
" =# ",
279+
" =#",
280+
" #=",
281+
" #= ",
282+
" #= ",
283+
" #= ",
284+
" #= ",
285285
]
286286

287287
self.unicode_palette = "≋≣"
@@ -446,10 +446,11 @@ def printable_shell_command(cmd_list):
446446

447447
def main():
448448
spinner = Spinner("Running spinner...")
449-
for _ in range(300):
449+
for _ in range(100):
450450
time.sleep(0.15)
451451
spinner.step()
452452
spinner.end()
453+
print("Success!")
453454

454455

455456
if __name__ == "__main__":

0 commit comments

Comments
 (0)