readline should work without a .sI environment variable again

This commit is contained in:
Izaya 2017-05-23 15:14:50 +00:00
parent 1c2da6090b
commit 4c5ae1d393

View File

@ -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()