2017-05-20 06:55:11 +10:00
|
|
|
function luash(si)
|
2017-04-19 02:40:25 +10:00
|
|
|
s("lua shell",function()
|
2017-06-13 09:55:13 +10:00
|
|
|
if _OSVERSION and _BD then
|
2017-06-20 04:33:42 +10:00
|
|
|
write(_OSVERSION.." on "..nID.." (built at ".._BD..")\t")
|
2017-06-13 09:55:13 +10:00
|
|
|
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
|
2017-05-20 06:55:11 +10:00
|
|
|
end,si)
|
|
|
|
end
|