View difference between Paste ID: gAWx2Mjd and Gvv71Mk4
SHOW: | | - or go back to the newest paste.
1
mon = peripheral.wrap("top")
2
mon.clear()
3
w, h = mon.getSize()
4
5-
function line1(color, text)   
5+
function line1(color, num, text)   
6-
   mon.setCursorPos((w-string.len(text))/2+1, 2)
6+
   mon.setCursorPos((w-string.len(text))/2+1, num*2)
7
   mon.setTextColor(color)
8
   mon.write(text)
9-
end
9+