Skip to content

Commit

Permalink
apio upload: Fix bug in windows: iceprog not refreshing correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 20, 2024
1 parent a37f2ed commit 56ac631
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apio/managers/scons.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 56ac631

Please sign in to comment.