Jump to content
Sign in to follow this  
  • entries
    122
  • comments
    121
  • views
    68867

MSDN

Sign in to follow this  
Twisol

104 views

I've been mucking through the MSDN today, and I found a couple useful console-related functions I could use, particularly SetConsoleTextAttribute(). Not too big of a change, but it does allow for setting a "default" color. cConsole::output() now only requires the string to be passed. I'm changing the order of the default variables too, so it starts with the string (a must-be-passed), then takes the flush switch (whether to flush the buffer to the screen or not), then the color, then the row and column integers. Outputting is as easy as "console.output("Yay!");" now. [smile]

EDIT: OK, so if you're a nitpicker, you'll notice that you'd have to make it ("Yay!", true) in order to even SHOW the text, but really. That's just chronic nitpicking, there.


I lied. I botched it. I'll work on it tomorrow... today. Whichever is when I wake up. [flaming]
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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