Force flush when writing progress indicator.

This commit is contained in:
Florian Nücke
2021-06-06 13:42:55 +02:00
parent c1920c5245
commit e1781043df
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ while true do
local bytes = {string.byte(str, 1, -1)}
device:writeExportFile(bytes)
io.write(".")
io.flush()
end
end
io.write("\n")

View File

@@ -27,6 +27,7 @@ while true do
if #bytes > 0 then
file:write(string.char(table.unpack(bytes)))
io.write(".")
io.flush()
end
end
io.write("\n")