From 38f6982e3972ab08c393d9c932e6231343730c66 Mon Sep 17 00:00:00 2001 From: Izaya Date: Mon, 9 Oct 2017 04:29:47 +1100 Subject: [PATCH] wget can now be cancelled using ctrl-alt-c --- exec/wget.lua | 2 ++ 1 file changed, 2 insertions(+) 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