Posted 25 March 2013 - 04:41 AM
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
center on a 1,5 monitor question
Started by ninjastricken, 25 March 2013 - 03:41 AMPosted 25 March 2013 - 05:03 AM
EDIT: Just saw you redirected the terminal. It should be working… Are you specifying a side for it to wrap?
local side = "top"
local mon = term.redirect(peripheral.wrap(side))
print("Lol, wut?")
Ouput on mon: Lol, wut?
Posted 25 March 2013 - 05:56 AM
yes i am
Posted 25 March 2013 - 06:07 AM
Have you changed the variables in there that are required? because it should be working perfectly fine…
also just a slight improvement change line 7 to this… it will mean that visually no matter the string it will print what looks like the middle (even length strings don't look centred if you don't do it this way)
also just a slight improvement change line 7 to this… it will mean that visually no matter the string it will print what looks like the middle (even length strings don't look centred if you don't do it this way)
term.setCursorPos( (w / 2) - #text / 2 + (#text % 2 == 0 and 0 or 1), y)