Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id = 8
- term.setBackgroundColor(colours.green)
- x, y = term.getSize()
- term.clear()
- term.setCursorPos((x-6)/2, y/2)
- term.write("Toggle")
- rednet.open("back")
- while true do
- event, p1, p2 = os.pullEvent()
- if event == "mouse_click" then
- rednet.send(id, "open")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement