0

How to change the background colour of highlighted text on windows cmd?

The background colour changes to white however highlighted text background still seems to show as black even though I have changed all the background colours to white.

For example if there is a failure, it will show the exception text background as black instead of white.

Any ideas?

enter image description here

SamP
  • 417
  • 5
  • 24
  • Is this even possible? – Dominique Oct 18 '18 at 08:13
  • Hi Dominique, changing of the highlighted text to white instead of black? – SamP Oct 18 '18 at 09:37
  • How did you get this text to be black? I believe you've selected it, I don't know if it's possible to change the colour of text in the command prompt, based on the content of the text you're displaying. – Dominique Oct 18 '18 at 11:31
  • Highlighting just swaps foreground and background colors. You might be interested in [this](https://stackoverflow.com/questions/2048509/how-to-echo-with-different-colors-in-the-windows-command-line/38617204#38617204) – Stephan Oct 20 '18 at 12:55

0 Answers0