commit
4c6f18bc59
|
@ -20,7 +20,7 @@ class Spinner:
|
|||
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"""
|
||||
|
|
Loading…
Reference in New Issue