Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Trouble in setting Defaults in CMD

Jun 1, 2011 11:38PM PDT

Hello.
When opening Defaults in CMD.EXE and then choosing colors, the Screen Text and the Screen Background are always identical. If I modify one of them - the other changes in the same amount.
It causes problem when debugging console aplications under Visual Studio.
How to fix this problem ?
Regards
Amnon

Discussion is locked

- Collapse -
Answer
Isn't this a long standing "something that would be nice"
Jun 1, 2011 11:50PM PDT

To fix? That is, I recall this from about 10 years ago and nothing has changed since then.

As to it causing problems in debugging a console app, I never found that to be true. I've debugged such apps without trouble even with this old bug or anomaly.

But let's look at how you launch that console. Is it from VS or from the shortcut on the start menu?

Do you know why each will differ?
Bob

- Collapse -
"Invisible" text in Debug
Jun 2, 2011 12:06AM PDT

When I debug application that uses 'printf' or 'cout' in VS C++, the console window that appears has the same color for text and background (just like the Defaults of CMD) - so naturally I'm not able to see the text created by the application.

- Collapse -
That does not happen here.
Jun 2, 2011 12:26AM PDT

Something is not stock but you did not answer my question so I'm left to guess you are new to all this.

Works fine here.
Bob