Skip to content

Commit 56ac631

Browse files
committed
apio upload: Fix bug in windows: iceprog not refreshing correctly
1 parent a37f2ed commit 56ac631

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apio/managers/scons.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ def _on_stdout(line):
998998
match = re.search(pattern_fomu, line)
999999
if match:
10001000
# -- Delete the previous line
1001-
print(CURSOR_UP + ERASE_LINE, end="")
1001+
print(CURSOR_UP + ERASE_LINE, end="", flush=True)
10021002
# ---- Fomu output processing END
10031003

10041004
fgcol = "green" if "is up to date" in line else None
@@ -1031,7 +1031,7 @@ def _on_stderr(line: str):
10311031
# -- initial one (when it is 0%)
10321032
if match_tinyprog and " 0%|" not in line:
10331033
# -- Delete the previous line
1034-
print(CURSOR_UP + ERASE_LINE, end="")
1034+
print(CURSOR_UP + ERASE_LINE, end="", flush=True)
10351035
# ------- tinyprog output processing END
10361036

10371037
# ------- iceprog output processing BEGIN
@@ -1051,7 +1051,7 @@ def _on_stderr(line: str):
10511051
# -- (or if it is the end of verifying!)
10521052
if match or "done." in line or "VERIFY OK" in line:
10531053
# -- Delete the previous line
1054-
print(CURSOR_UP + ERASE_LINE, end="")
1054+
print(CURSOR_UP + ERASE_LINE, end="", flush=True)
10551055
# ------- Iceprog output processing END
10561056

10571057
# -- Print the line (In YELLOW)

0 commit comments

Comments
 (0)