Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor = peripheral.wrap("left")
- monitor.setBackgroundColor(colors.black)
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setBackgroundColor(colors.black)
- monitor.setTextScale(0.5)
- monitor.setBackgroundColor(colors.lime)
- monitor.setCursorPos(1,1)
- monitor.write(" ")
- while true do
- event,side,x,y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 1 and y == 1 then
- term.setCursorPos(1,1)
- monitor.write("nice")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement