Mega Code Archive

 
Categories / C# / Development Class
 

Use Red and Green from ConsoleColor

using System; public class MainClass {     static void Main(string[] args) {        // Change the console appearance and redisplay.        Console.Title = "Colored Text";        Console.ForegroundColor = ConsoleColor.Red;        Console.BackgroundColor = ConsoleColor.Green;    } }