made readline return false when ctrl-shift-c is pressed.

This commit is contained in:
Izaya 2017-09-05 19:08:51 +10:00
parent 98e9b95f54
commit fa3338589f

View File

@ -9,6 +9,8 @@ function readln(rC)
return s
elseif c == 8 then
if s:len()>0 then s=s:sub(1,-2) write("\127") end
elseif c == 3 and C == 46 then
return false
elseif c > 31 and c < 127 then
s=s..string.char(c) write((rC or string.char(c)))
end