readline should work without a .sI environment variable again
This commit is contained in:
parent
1c2da6090b
commit
4c5ae1d393
@ -1,8 +1,8 @@
|
||||
function readln()
|
||||
local s=""
|
||||
local s,si="",E().sI or 1
|
||||
write("|")
|
||||
while true do
|
||||
if ev[1] == "key" and ev[2] == E().sI then
|
||||
if ev[1] == "key" and ev[2] == si then
|
||||
if ev[3] == 13 then
|
||||
write("\127\n")
|
||||
C.yield()
|
||||
|
Loading…
Reference in New Issue
Block a user