internal static void SetTerminalForegroundRed(this IConsole console)
{
if (console.GetType().GetInterfaces().Any(i => i.Name == "ITerminal"))
{
((dynamic)console).ForegroundColor = ConsoleColor.Red;
}
else if (!Console.IsOutputRedirected)
{
Console.ForegroundColor = ConsoleColor.Red;
}
}