Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Fix Spinner

Robin Richtsfeld8d7e0153f056
diff --git a/scripts/spinner.py b/scripts/spinner.py
index df39dbbd22..df1f4ddf93 100644
--- a/scripts/spinner.py
+++ b/scripts/spinner.py
@@ -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"""