OC-MultICE/modules/applications/luash.lua

14 lines
282 B
Lua
Raw Normal View History

function luash(si)
2017-04-19 02:40:25 +10:00
s("lua shell",function()
if _OSVERSION and _BD then
write(_OSVERSION.." (built at ".._BD..")\t")
end
print(tostring(computer.freeMemory()/1024).."K free.",_G.motd)
2017-04-19 02:40:25 +10:00
print(_VERSION)
while true do
2017-05-15 17:19:24 +10:00
write("> ")
2017-04-19 02:40:25 +10:00
print(pcall(load(readln())))
end
end,si)
end