made readline return false when ctrl-shift-c is pressed.
This commit is contained in:
parent
98e9b95f54
commit
fa3338589f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user