Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("bottom")
- local wM,hM = mon.getSize()
- function printCentered (text, yVal)
- length = string.len(text)
- minus = math.floor(wM-length)
- x = math.floor(minus/2)
- mon.setCursorPos(x+1, yVal)
- mon.write(text)
- end
- mon.setTextScale(1.8)
- mon.clear()
- printCentered("ME Terminal", 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement