The windows way to clear a console window is to write your own ClrScrn function and use that. How to ? Well, read the FAQ.