This commit is contained in:
Ryan T
2026-02-20 15:23:48 -05:00
15 changed files with 68 additions and 60 deletions
+11
View File
@@ -173,6 +173,17 @@ local function getUserInput()
end
local function runCommand(command)
do
local func = load("return " .. command, "@equation", "t", {})
if func then
local success, result = pcall(func)
if success and type(result) == "number" then
print(result)
return
end
end
end
terminate = false
local args = string.split(command, " ")
if builtinCmds[args[1]] then
+2 -1
View File
@@ -20,4 +20,5 @@ while content~=nil or file == 0 do
content=syscall.read(file, 1024)
printInline(content)
end
syscall.close(file)
syscall.close(file)
print("")
View File
View File