blink -> setCursorBlink

Former-commit-id: 37105b9ce26db26b45b649bbe4b9c0718792f4fb
Former-commit-id: 10252f6825fa6afa0942220dee4f568be21fe64b
This commit is contained in:
Song Minjae
2016-09-22 23:23:04 +09:00
parent 85156ecdcf
commit 29db14d184
11 changed files with 51 additions and 34 deletions

View File

@@ -62,19 +62,17 @@ end
print("Rom basic "..DC2.._VERSION..DC4)
print("Copyright (C) 1994-2015 Lua.org, PUC-Rio")
print(DC2..tostring(math.floor(getFreeMem()/1024+0.5))..DC4.." Kbytes free")
print("To boot your system, run 'boot()'")
print("Ok")
while not native.isHalted() do
while not native.isHalted() do
io.write(_COMPUTER.prompt)
local s = io.read()
xpcall(
function() _G.runscript(s, "=stdin") end,
function(s) print(DLE..s) end -- it catches logical errors
)
end
io.write(_COMPUTER.prompt)
local s = io.read()
xpcall(
function() _G.runscript(s, "=stdin") end,
function(s) print(DLE..s) end -- it catches logical errors
)
end
native.closeInputString()
__haltsystemexplicit__()
return

View File

@@ -60,7 +60,7 @@ _G.__scanforline__ = function(echo) -- pass '1' to not echo; pass nothing to ech
end
-- use Keys API to identify the keycode
_G.__scanforchar__ = function(echo) -- pass '1' to not echo; pass nothing to echo
_G.__scanforkey__ = function(echo) -- pass '1' to not echo; pass nothing to echo
native.closeInputString()
native.openInput(echo or 0)
_G.__scanMode__ = "a_key"