This commit is contained in:
hari-dhanushkodi
2026-03-09 12:10:55 -04:00
parent fac583d833
commit c8a0bd4dea
3 changed files with 44 additions and 35 deletions
+1
View File
@@ -24,6 +24,7 @@ class Progress:
sys.stdout.write(next(self.spinner_generator) + " " + message)
sys.stdout.flush()
time.sleep(self.delay)
# clear the spinner and message
sys.stdout.write(
"\b" * (len(message) + 2)
+ " " * (len(message) + 2)