Jump to content
  • Advertisement
Sign in to follow this  
ErUs

Console ANSI colour

This topic is 4819 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

in C++ :) i need to append to string then just cout, but i dont know any of the escape sequences and cant find them.

Share this post


Link to post
Share on other sites
Advertisement
If I remember correctly, you just can't use cout - you need to write directly to the console...

Share this post


Link to post
Share on other sites
I think you should be able to use cout, I don't see why not.

However, I'm not certain the console of NT/9x handles ansi escape sequences right off the bat. In dos for example you had to load ansi.sys in order to support escape sequences. Might have to load some sort of ansi driver in newer windows too, don't quote me on that. Like stated earlier, windows has it's own console coloring handlers, and I'd recommend using those instead.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!