Advertisement
themadgod

security

Oct 9th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. mon = peripheral.wrap('top')
  2. mon.clear()
  3.  
  4. function drawNumPad(x, y)
  5. mon.setCursorPos(x,y)
  6. xstart = x
  7. ystart = y
  8.  
  9. for i = 1, 9, 1 do
  10. mon.write(" "..i.." ")
  11. if i % 3 == 0 and i ~= 0 then
  12. y = y + 1
  13. x = xstart
  14. end
  15. x = x + 1
  16. end
  17.  
  18. mon.setCursorPos(x+1, y+1)
  19. mon.write('0')
  20.  
  21. end
  22.  
  23. drawNumPad(2,2)
  24.  
  25. repeat
  26.  
  27. drawNumPad(2,2)
  28.  
  29. input = os.pullEvent()
  30.  
  31.  
  32. while input ~= 'key'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement