Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Forum Connectivity Upgrade Read more... ×
  • 0

How does OpenOS display text with word wrap?


I am trying to figure out how to write text to the screen from the gpu component with word wrapping. Since \n doesn't work, how can I use the set function to do this. Is there a certain process?

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 1

You have to write a function that will split a string by length or by some delimiter into "lines", then call gpu.set for each line. Look into string.gmatch or string.sub

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.