From 56ac63134a02fa8c197327b890cfd05aed9b1faa Mon Sep 17 00:00:00 2001 From: Obijuan Date: Wed, 20 Mar 2024 10:23:53 +0100 Subject: [PATCH] apio upload: Fix bug in windows: iceprog not refreshing correctly --- apio/managers/scons.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apio/managers/scons.py b/apio/managers/scons.py index a4fa97c7..5b335722 100644 --- a/apio/managers/scons.py +++ b/apio/managers/scons.py @@ -998,7 +998,7 @@ def _on_stdout(line): match = re.search(pattern_fomu, line) if match: # -- Delete the previous line - print(CURSOR_UP + ERASE_LINE, end="") + print(CURSOR_UP + ERASE_LINE, end="", flush=True) # ---- Fomu output processing END fgcol = "green" if "is up to date" in line else None @@ -1031,7 +1031,7 @@ def _on_stderr(line: str): # -- initial one (when it is 0%) if match_tinyprog and " 0%|" not in line: # -- Delete the previous line - print(CURSOR_UP + ERASE_LINE, end="") + print(CURSOR_UP + ERASE_LINE, end="", flush=True) # ------- tinyprog output processing END # ------- iceprog output processing BEGIN @@ -1051,7 +1051,7 @@ def _on_stderr(line: str): # -- (or if it is the end of verifying!) if match or "done." in line or "VERIFY OK" in line: # -- Delete the previous line - print(CURSOR_UP + ERASE_LINE, end="") + print(CURSOR_UP + ERASE_LINE, end="", flush=True) # ------- Iceprog output processing END # -- Print the line (In YELLOW)