Skip to content

Commit

Permalink
Fix Spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Androbin authored Apr 12, 2023
1 parent d7b7476 commit 8d7e015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/spinner.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def spin(self):
sys.stdout.write(next(self.spinner) + " " + self.message + "\r")
sys.stdout.flush()
time.sleep(self.delay)
sys.stdout.write('\b' * (len(self.message) + 2))
sys.stdout.write('\r' + ' ' * (len(self.message) + 2) + '\r')

def __enter__(self):
"""Start the spinner"""
Expand Down

0 comments on commit 8d7e015

Please sign in to comment.