c# set console color to default code example Example: c# console foreground color Console.ForegroundColor = ConsoleColor.DarkGreen;