You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that dark colors (that is, Black and all the color names starting with Dark) are printed incorrectly, and are rendered as their lighter counterparts instead of the dark versions.
Here is a comparison between Console.WriteLine and IOutputDevice.DisplayAsync:
The Console version:
Console.WriteLine("This is the default color");foreach(var consoleColor in Enum.GetValues<ConsoleColor>()){
Console.ForegroundColor =consoleColor;
Console.WriteLine("This is foreground {0}", consoleColor);}
The IOutputDevice version:
await outputDevice.DisplayAsync(this,new TextOutputDeviceData("This is the default color"));foreach(var consoleColor in Enum.GetValues<ConsoleColor>())await outputDevice.DisplayAsync(this,new FormattedTextOutputDeviceData("This is foreground "+ consoleColor.ToString()){ForegroundColor=new SystemConsoleColor {ConsoleColor=consoleColor}});
I noticed that dark colors (that is,
Black
and all the color names starting withDark
) are printed incorrectly, and are rendered as their lighter counterparts instead of the dark versions.Here is a comparison between
Console.WriteLine
andIOutputDevice.DisplayAsync
:The
Console
version:The
IOutputDevice
version:I've attached the repro project.
testfx.zip
The text was updated successfully, but these errors were encountered: