Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- inital start
- currentBackgroundColor = "colors.gray"
- function mainProcess()
- while true do
- if not fs.exists("fileData") then
- currentBackgroundColor = "colors.lime"
- term.setBackgroundColor(currentBackgroundColor)
- end
- end
- end
- function delData()
- while true do
- repeat
- local _, key = os.pullEvent("key")
- until key == keys.d
- term.setBackgroundColor("colors.red")
- os.sleep(.1)
- term.setBackgroundColor(currentBackgroundColor)
- end
- end
- parallel.waitForAll(mainProcess, delData)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement