Please read the article "HOWTO: Performing Clear Screen (CLS) in a Console Application" from MSDN
One method is the one above but your code will be MSVCRT.DLL dependent and the other is explain there by using two API functions:
- GetConsoleScreenBufferInfo
- FillConsoleOutputCharacter
Also the "Console" sample from MSDN makes use of API console functions. s-)
Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.