This commit is sponsored by Keeps
This commit is contained in:
parent
58b63b4cde
commit
ec5d0d14f8
|
@ -56,11 +56,13 @@ local headers = req.getResponseHeaders()
|
||||||
local length = headers["content-length"] or 1
|
local length = headers["content-length"] or 1
|
||||||
|
|
||||||
local _, y = term.getCursorPos()
|
local _, y = term.getCursorPos()
|
||||||
|
local written = 0
|
||||||
while true do
|
while true do
|
||||||
local chunk = req.read(256)
|
local chunk = req.read(256)
|
||||||
if not chunk then
|
if not chunk then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
written = written + #chunk
|
||||||
tape.write(chunk)
|
tape.write(chunk)
|
||||||
term.setCursorPos(1, y)
|
term.setCursorPos(1, y)
|
||||||
term.clearLine()
|
term.clearLine()
|
||||||
|
|
Loading…
Reference in New Issue