static bool TryEnableConsoleColor() { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { return(ColorConsole.EnableColorMode()); } // other platforms should support VT escape sequences normally, I think... ? return(true); }