OC-MultICE/modules/applications/luash.lua

14 lines
295 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
2017-06-20 04:33:42 +10:00
write(_OSVERSION.." on "..nID.." (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