Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- w, h = mon.getSize()
- -- Amount the monitor can hold
- hMonitor = {6, 7}
- wMonitor = {9, 11}
- mon.clear()
- mon.setBackgroundColor(colors.black)
- for i = 1, w do
- mon.setCursorPos(i, 1)
- mon.write("1")
- end
- for i = 1, h do
- mon.setCursorPos(1, i)
- mon.write("2")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement