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")
- end
- event, side, x1, y1 = os.pullEvent ("monitor_touch")
- if x1 > 1 and y1 > 1 then
- mon.setCursorPos(3, 3)
- mon.clearLine()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement