Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("right")
- m2 = peripheral.wrap("front")
- local w, h = m.getSize()
- local w2, h2 = m2.getSize()
- local text = " "
- local text2 = " Twilight"
- -- Center text
- m.setCursorPos(math.ceil((w / 2) - (text:len() / 2)), 3)
- m.clear()
- m2.clear()
- term.setCursorPos(1,1)
- print("W: "..w.." H: "..h)
- m.setTextScale(1)
- --m.setCursorPos(6,3)
- m.write(text)
- m2.setCursorPos(math.ceil((w2 / 2) - (text2:len() / 2)), 3)
- m2.write(text2)
Advertisement
Add Comment
Please, Sign In to add comment