mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
blink -> setCursorBlink
Former-commit-id: 37105b9ce26db26b45b649bbe4b9c0718792f4fb Former-commit-id: 10252f6825fa6afa0942220dee4f568be21fe64b
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user