12 lines
309 B
Lua
12 lines
309 B
Lua
function luash(si)
|
|
spawn("lua shell",function()
|
|
coroutine.yield()
|
|
print(_OSVERSION..", "..string.format("%4d",computer.totalMemory()/1024).."K memory, "..string.format("%4d",computer.freeMemory()/1024).."K free")
|
|
print(_VERSION)
|
|
while true do
|
|
write("> ")
|
|
print(pcall(load(readln())))
|
|
end
|
|
end,si)
|
|
end
|