Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

phil05

Console Word Wraps?

This topic is 5216 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m curious if there''s a word wrap on consoles, considering that my words get chopped up if it maxs 80 characters on one line. I''m sure there''s a way to program this out, so please let me know if you have any suggestions. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Since consoles mainly deal with streams of text and generally want to give as much control as possible to the programs, (almost?) no consoles will do word-wrap. You have to manually implement it in your program. Basically you''d have to keep track of where the cursor is and how long the last word is. When the cursor hits column 80, the program should send out a bunch of backspace chars (''\b'') and then a newline.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!