Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.find("monitor")
- mon.setTextScale(1)
- mon.clear()
- mon.setCursorPos(1, 1)
- local text = "Line one\nLine two\nLine three"
- for line in text:gmatch("[^\n]+") do
- mon.write(line)
- local x, y = mon.getCursorPos()
- mon.setCursorPos(1, y + 1)
- end
Advertisement
Add Comment
Please, Sign In to add comment