Jump to content




newline with term.blit()


  • You cannot reply to this topic
5 replies to this topic

#1 Waitdev_

  • Members
  • 432 posts
  • LocationAdelaide

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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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.

#3 Waitdev_

  • Members
  • 432 posts
  • LocationAdelaide

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

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 31 October 2015 - 02:54 AM

write() and term.write() aren't the same, more to the point.

#5 RoD

  • Members
  • 313 posts

Posted 29 November 2015 - 11:51 PM

isn't print() the easiest way?

#6 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users