Author Topic: Is there a way to clean up the output screen?  (Read 423 times)

Offline 357mag

  • Multiple posting newcomer
  • *
  • Posts: 12
Is there a way to clean up the output screen?
« on: August 13, 2018, 09:57:12 am »
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?

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1971
Re: Is there a way to clean up the output screen?
« Reply #1 on: August 13, 2018, 07:44:59 pm »
Porject->Settings->Build targets->Pause when execution ends

Offline 357mag

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Is there a way to clean up the output screen?
« Reply #2 on: August 30, 2018, 03:56:39 am »
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.

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1971
Re: Is there a way to clean up the output screen?
« Reply #3 on: August 30, 2018, 10:01:49 am »
Quote
The box need to be checked.
Why? If you do not check this box none of the text you are complaining is shown...

Offline Miguel Gimenez

  • Multiple posting newcomer
  • *
  • Posts: 112
Re: Is there a way to clean up the output screen?
« Reply #4 on: August 30, 2018, 02:18:58 pm »
He needs it to be checked because without some effort in his side the window closes when the program ends.

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1971
Re: Is there a way to clean up the output screen?
« Reply #5 on: August 30, 2018, 04:50:58 pm »
Well, then he should describe the problem he has and not simply write
Quote
The box need to be checked
, because this is exactly the box he needs to uncheck to get the cleanest, off all clean outputs...

Offline 357mag

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Is there a way to clean up the output screen?
« Reply #6 on: August 31, 2018, 10:08:20 pm »
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.