Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap('top')
- mon.clear()
- function drawNumPad(x, y)
- mon.setCursorPos(x,y)
- xstart = x
- ystart = y
- for i = 1, 9, 1 do
- mon.write(" "..i.." ")
- if i % 3 == 0 and i ~= 0 then
- y = y + 1
- x = xstart
- end
- x = x + 1
- end
- mon.setCursorPos(x+1, y+1)
- mon.write('0')
- end
- drawNumPad(2,2)
- repeat
- drawNumPad(2,2)
- input = os.pullEvent()
- while input ~= 'key'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement