Advertisement
Guest User

startup

a guest
Apr 24th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. monitor = peripheral.wrap("left")
  2. monitor.setBackgroundColor(colors.black)
  3. monitor.clear()
  4. monitor.setCursorPos(1,1)
  5. monitor.setBackgroundColor(colors.black)
  6.  
  7. monitor.setTextScale(0.5)
  8. monitor.setBackgroundColor(colors.lime)
  9. monitor.setCursorPos(1,1)
  10. monitor.write("                ")
  11.  
  12.  
  13.  
  14.  
  15.  
  16. while true do
  17.   event,side,x,y = os.pullEvent()
  18.     if event == "monitor_touch" then
  19.       if x == 1 and y == 1 then
  20.         term.setCursorPos(1,1)
  21.         monitor.write("nice")
  22.       end
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement