I think that clear the screen is depending of the OS, but if the OS is compliant with ANSI standard, try to write to console the scape secuence the command for clear the screen:
printf( "\33[2J"); // Example in C/C++
// "\33" is the scape caracter (0x1b)
If your OS is DOS/WINDOWS, you must to load in your config.sys the ansi.sys driver for make your OS an ANSI compliant.
Main Topics
Browse All Topics





by: wataruPosted on 2000-06-16 at 01:46:31ID: 2961354
Try this
putchar (14); // clear screen
putchar (7); // beep