Operating system for OpenComputers
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

10 行
330B

  1. local shenv = {}
  2. setmetatable(shenv,{__index=function(_,k) if _G[k] then return _G[k] elseif fs.exists("/boot/exec/"..k..".lua") then return loadfile("/boot/exec/"..k..".lua") end end})
  3. while true do
  4. io.write(_VERSION.."> ")
  5. tResult = {pcall(load(io.read(),"shell","t",shenv))}
  6. for k,v in pairs(tResult) do
  7. print(v)
  8. end
  9. end