dotnet set background color code example Example: Colour background c# Console.BackgroundColor = ConsoleColor.Green;