If you stop the program while it is running, it clears the console. I think that it should leave it as is so you can analyze the printed text in it if necessary.