Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.find("monitor")
- mon.clear()
- while true do
- mon.setCursorPos(1, 1)
- mon.write("test")
- event, side, x, y = os.pullEvent ("monitor_touch")
- if x > 1 and y > 1 then
- mon.setCursorPos(3, 3)
- mon.write("klik")
- os.sleep(1)
- mon.clearLine()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement