Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Functions ]]--
- -- Layout --
- function clear()
- term.clear()
- term.setCursorPos(1, 1)
- end
- function Reset()
- clear()
- term.setTextColor(colors.red)
- write("Computer Wiper")
- term.setTextColor(colors.yellow)
- term.setTextColor(colors.white)
- w, h = term.getSize()
- print(string.rep("-", w)) write("\n")
- end
- --[[ Interface ]]--
- Reset()
- write("Wiping Computer")
- Progs = fs.list("/")
- for k, v in pairs(Progs) do
- if v == "rom" or v == "disk" then
- else
- term.setTextColor(colors.red)
- write("\nDeleting File: ") term.setTextColor(colors.white) write(v)
- fs.delete(v)
- os.sleep(1)
- end
- end
- term.setTextColor(colors.lime)
- print("\nComputer Has Been Wiped!")
- term.setTextColor(colors.yellow)
- print("\n(-)OK")
- term.setTextColor(colors.white)
- repeat
- event, key = os.pullEvent("key")
- os.sleep(0.1)
- until key == 28
- os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment