Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local clear = function()
- term.clear()
- term.setCursorPos(1,1)
- end
- local main = function()
- while true do
- local click = os.pullEvent("mouse_click")
- term.setCursorPos(click[3],click[4])
- term.setBackgroundColor(colors.white)
- term.write(" ")
- term.setBackgroundColor(colors.black)
- end
- end
- xpcall(main,clear)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement