Operating system for OpenComputers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
430B

  1. os.spawn(function()
  2. print(_OSVERSION,tostring(computer.totalMemory()/1024).."K memory")
  3. for k,v in pairs(fd) do
  4. if v.t == "t" then
  5. tTasks[cPid].t = k
  6. print("Spawning Lua prompt for "..tostring(k))
  7. os.spawn(function() print(pcall(function() while true do
  8. io.write(_VERSION.."> ")
  9. tResult = {pcall(load(io.read()))}
  10. for k,v in pairs(tResult) do
  11. print(v)
  12. end
  13. end end)) end,"lua prompt")
  14. end
  15. end end,"init")