How to add font color to a .net console app?
Is there a way to color the font of certain lines in a console app in .net?
Than开发者_如何学JAVAks
Console.BackgroundColor = ConsoleColor.Blue;
Console.ForegroundColor = ConsoleColor.Yellow;
http://msdn.microsoft.com/en-us/library/system.console.foregroundcolor.aspx
You can change the foreground and background colors of the console. The foreground color is of course the text.
精彩评论