0

I have a .NET console application that uses a little bit more than just Console.WriteLine - I write things to different parts of the current line, as processing progresses.

I want to change the color of all the characters in the line before moving on to the next line (so that the current line is in white, and all previous lines are in gray).

How can I change the color of existing characters in the console, without printing them again?

zmbq
  • 38,013
  • 14
  • 101
  • 171

1 Answers1

0

You probably can't do it that way. If you have already printed a symbol, you will not be able to change its color.

Possible solution is to do like @Arvindsinc2 says here. Just flush line and rewrite it again with additional info.

Hope this would help

Alex
  • 21
  • 6