Fixed lossy events.
This commit is contained in:
parent
0e269aa894
commit
83ad20cd9d
@ -7,5 +7,4 @@ function l()
|
||||
end
|
||||
function h(...)
|
||||
computer.pushSignal(...)
|
||||
coroutine.yield()
|
||||
end
|
||||
|
@ -4,7 +4,9 @@ function readln()
|
||||
while true do
|
||||
if ev[1] == "key_down" then
|
||||
if ev[3] == 13 then
|
||||
h("display","\127\n") return s
|
||||
h("display","\127\n")
|
||||
C.yield()
|
||||
return s
|
||||
elseif ev[3] == 8 then
|
||||
if s:len()>0 then s=s:sub(1,-2) h("display","\127\127|") end
|
||||
elseif ev[3] > 31 and ev[3] < 127 then
|
||||
|
Loading…
Reference in New Issue
Block a user