This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Waitdev_'s profile picture

newline with term.blit()

Started by Waitdev_, 31 October 2015 - 12:10 AM
Waitdev_ #1
Posted 31 October 2015 - 01:10 AM
its gotta be possible, can you do a new line with term.blit?
its possible with write() e.g. write("hi\nhello"), so is it possible in term.blit?
pretty simple question, thanks
Lyqyd #2
Posted 31 October 2015 - 01:12 AM
Newline characters do the same thing in strings passed to term.blit as they do in strings passed to term.write. They'll just draw a question mark character on the screen.
Waitdev_ #3
Posted 31 October 2015 - 01:29 AM
i did a test, write() makes a new line but term.blit() doesn't. unless i read the reply wrong, term.blit and term.write aren't the same
Bomb Bloke #4
Posted 31 October 2015 - 02:54 AM
write() and term.write() aren't the same, more to the point.
RoD #5
Posted 29 November 2015 - 11:51 PM
isn't print() the easiest way?
Bomb Bloke #6
Posted 30 November 2015 - 12:59 AM
Calling print() after term.blit() is the simple way to get the desired line break, yes. Wait_ was hoping to get that functionality without making the additional function call, however, and that much isn't possible.