Erase line before writing it, to avoid overlapping.

This commit is contained in:
Julien Palard 2021-01-04 16:41:32 +01:00
parent 482e3ac5e6
commit 3c7f090e7b
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ async def show_progression(results):
f"{truncate(', '.join(currently_running), max_width=100)}"
)
print(
"\033[0J", # ED (Erase In Display) with parameter 0:
# Erase from the active position to the end of the screen.
FRAMES[frameno % len(FRAMES)],
f"{status_line:126}",
end="\r",