• Advertisement
Sign in to follow this  
  • entries
    122
  • comments
    121
  • views
    68723

MSDN

Sign in to follow this  

95 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