mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-13 23:26:07 +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"
|
||||
|
||||
@@ -29,7 +29,7 @@ class BaseTerrarumComputer(val term: Teletype? = null) {
|
||||
|
||||
val DEBUG_UNLIMITED_MEM = false
|
||||
|
||||
val luaJ_globals: Globals = JsePlatform.standardGlobals()
|
||||
val luaJ_globals: Globals = JsePlatform.debugGlobals()
|
||||
|
||||
var termOut: PrintStream? = null
|
||||
private set
|
||||
|
||||
@@ -38,7 +38,7 @@ internal class Term(globals: Globals, term: Teletype) {
|
||||
globals["term"]["getY"] = Term.GetCursorY(term)
|
||||
globals["term"]["setX"] = Term.SetCursorX(term)
|
||||
globals["term"]["setY"] = Term.SetCursorY(term)
|
||||
globals["term"]["blink"] = Term.SetCursorBlink(term)
|
||||
globals["term"]["setCursorBlink"] = Term.SetCursorBlink(term)
|
||||
globals["term"]["size"] = Term.GetSize(term)
|
||||
globals["term"]["height"] = Term.GetHeight(term)
|
||||
globals["term"]["isCol"] = Term.IsColour(term)
|
||||
|
||||
Reference in New Issue
Block a user