Posted 15 August 2012 - 11:32 AM
I tried to set up a monitor for the first time with the: mon = peripheral.wrap() command
My problem was that i had to type a new command for every line.
Example:
Hello!
How its going?
Anything new?
To get this text to display i had to write it like that:
mon.setcursorpos(1,1)
mon.write("Hello!")
mon.setcursorpos(1,2)
mon.write("How its going?")
mon.setcursorpos(1,3)
mon,write("anything new?)
Now if i wanted to write a BIG text it would take ages to type all this in,
Isnt there a way to type it in like that?
mon.setcursorpos(1,1)
mon.write("Hello!
How its going?
Anything new?")
Also is there a way to stop the text from going over the boundaries of the monitor? Like if its too long? Like stop at the most right border of the monitor and continue in the next line?
Thanks in advance!
My problem was that i had to type a new command for every line.
Example:
Hello!
How its going?
Anything new?
To get this text to display i had to write it like that:
mon.setcursorpos(1,1)
mon.write("Hello!")
mon.setcursorpos(1,2)
mon.write("How its going?")
mon.setcursorpos(1,3)
mon,write("anything new?)
Now if i wanted to write a BIG text it would take ages to type all this in,
Isnt there a way to type it in like that?
mon.setcursorpos(1,1)
mon.write("Hello!
How its going?
Anything new?")
Also is there a way to stop the text from going over the boundaries of the monitor? Like if its too long? Like stop at the most right border of the monitor and continue in the next line?
Thanks in advance!