News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Is there a way to clean up the output screen?

Started by 357mag, August 13, 2018, 09:57:12 AM

Previous topic - Next topic

357mag

If you run a simple program and look at the output screen you will see this:

Hello World!
Process returned 0 <0x0>  Execution time : 0.023s
Press any key to continue...

I personally dislike the Process returned line with all that unnecessary information cluttering up the screen.

Hello World!
Press any key to continue...

This is all that is needed.

Is there a way to prevent Codeblocks from printing that other stuff?

BlueHazzard

Porject->Settings->Build targets->Pause when execution ends

357mag

The box need to be checked. That does absolutely nothing to remove the stuff which I am referring to. If there is indeed a way to clean up the output screen somebody please post but I'm thinking there is none.

BlueHazzard

QuoteThe box need to be checked.
Why? If you do not check this box none of the text you are complaining is shown...

Miguel Gimenez

He needs it to be checked because without some effort in his side the window closes when the program ends.

BlueHazzard

Well, then he should describe the problem he has and not simply write
QuoteThe box need to be checked
, because this is exactly the box he needs to uncheck to get the cleanest, off all clean outputs...

357mag

I found a way. Untick the box and include <conio.h> Then include getch(). Makes the output window much cleaner the way I like. I wonder how easy or hard it is to set up Codeblocks to use wxWidgets to make Windows programs.