Console Clear Screen

Started by
11 comments, last by Laroche 21 years, 6 months ago
You should look up the function
WriteConsoleOutput
It is pretty fast, as it does a ton of things in a single call. Its good for writting stuff to specific areas of the screen, i suggest you wrap it up in a small gameconsole engine.
Advertisement
I beleive there is a function in conio.h (C runtime) called clrscr() but I haven''t used that for ages, and I havent tried it in a console window.
I''m new to C++, so this might be a bad idea, but why not just SetConsoleCursorPosition? You could inline it, then call it easily. Or is that too flickery?
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!

This topic is closed to new replies.

Advertisement