Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.exit()
- local s=os.shutdown
- os.shutdown=function()
- print(c)
- read()
- s()
- end
- c=0
- parallel.waitForAll(function()
- while true do
- os.startTimer(0)
- coroutine.yield"timer"
- c=c+1
- local txt="shell.run'lua'"
- for i=1,#txt do
- os.queueEvent("char",txt:sub(i,i))
- end
- os.queueEvent("key",keys.enter)
- end
- end,
- function()
- shell.run"lua"
- end)
Advertisement
Add Comment
Please, Sign In to add comment