Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- -- Wait for disk
- while not fs.exists("/disk/startup") do
- os.pullEvent("disk")
- -- might cause problems, maybe use os.pullEvent() without arguments
- end
- -- Launch disk
- shell.run("/disk/startup")
- -- Wait for disk ejection and clear
- while fs.exists("/disk/startup") do
- os.pullEvent("disk_eject")
- -- might cause problems, maybe use os.pullEvent() without arguments
- term.clear()
- term.setCursorPos(1, 1)
- -- os.reboot() works too to clear the screen
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement