Order in Tab instead TabViewModel, Utf8 char handling

This commit is contained in:
2023-08-16 09:04:36 +02:00
parent d175c7bf7e
commit 3ca2fc181f
21 changed files with 286 additions and 189 deletions

View File

@@ -29,6 +29,8 @@ public sealed class XTermDriver : DotnetDriver
public override void SetBackgroundColor(IColor background)
{
if (background == SpecialColor.None) return;
if (background is ConsoleColor consoleColor)
{
Console.BackgroundColor = consoleColor.Color;
@@ -41,6 +43,8 @@ public sealed class XTermDriver : DotnetDriver
public override void SetForegroundColor(IColor foreground)
{
if (foreground == SpecialColor.None) return;
if (foreground is ConsoleColor consoleColor)
{
Console.ForegroundColor = consoleColor.Color;