This post explains how to change foreground color, background color and title of console window in C#.
In some cases it is required to change the text color in console window depending on the context of application. For example, green color text indicating success or red color text indicating error/warning.
Here is the sample code -
Create a new project of type console application with a name "ConsoleDemoApp" and enter the code in Program.cs as shown here.