Hi,
how can I clean the console screen?
Okay, I can use system("clear"); or system("cls"); but I don't want to use system commands.
Thanks,
Alexander
Printable View
Hi,
how can I clean the console screen?
Okay, I can use system("clear"); or system("cls"); but I don't want to use system commands.
Thanks,
Alexander
Use BIOS/DOS calls .. Some Interrupt.
You will have to code Assembly in C/C++
Cheers
V
If your console is 25 lines:Quote:
Originally posted by AlexanderS
Hi,
how can I clean the console screen?
Okay, I can use system("clear"); or system("cls"); but I don't want to use system commands.
Thanks,
Alexander
Other than that, there is no standard way in C++ to clear the console, or do any kind of console related programming. All of this is OS and compiler dependent, so you need to do research on the functions that your compiler supports in doing these things, or check how your OS does these things.Code:#include <iostream>
void ClearConsole( )
{
for ( int i =0; i < 25; ++i )
std::cout << std::endl;
}
Regards,
Paul McKenzie
Visit here
http://support.microsoft.com/default...b;EN-US;q99261
Hope it helps.