Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("left")
- local pos = {}
- pos["x"] = 1
- pos["y"] = 1
- local function newLine()
- pos.x = 1
- pos.y = pos.y + 1
- m.setCursorPos(pos.x,pos.y)
- end
- local function gotoLine(n)
- pos.x = 1
- pos.y = n
- end
- m.setTextScale(1)
- m.setBackgroundColor(colors.white)
- m.setTextColor(colors.black)
- m.clear()
- m.setCursorPos(1,1)
- for i = 1,50 do
- m.write(tostring(i))
- m.write(". ")
- newLine()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement