// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; public class ConsoleColor2 { public static void Main(string[] args) { ConsoleColor fg = Console.ForegroundColor; ConsoleColor bg = Console.BackgroundColor; Console.WriteLine("normal"); Console.ForegroundColor = ConsoleColor.Blue; Console.BackgroundColor = ConsoleColor.Red; Console.WriteLine("fancy"); Console.ForegroundColor = fg; Console.BackgroundColor = bg; } }