diff --git a/exec/wget.lua b/exec/wget.lua index f4ad840..95eb6c1 100644 --- a/exec/wget.lua +++ b/exec/wget.lua @@ -14,6 +14,8 @@ if code ~= 200 then end repeat coroutine.yield() + local t,c,C = event.get() + if t == "key" and c == 3 and C == 46 then break end ns = R.read(2048) f:write(ns or "") until not ns