Skip to content

Commit

Permalink
Fixes #2808. v2 ColorTests unit test is failing on Windows when testi…
Browse files Browse the repository at this point in the history
…ng the CursesDriver instance.
  • Loading branch information
BDisp authored and tig committed Aug 15, 2023
1 parent ad23a10 commit 551b888
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,9 @@ public override void Init (Action terminalResized)

TerminalResized = terminalResized;

if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
Clipboard = new FakeDriver.FakeClipboard ();
} else {
if (RuntimeInformation.IsOSPlatform (OSPlatform.OSX)) {
Clipboard = new MacOSXClipboard ();
} else {
Expand All @@ -675,6 +678,7 @@ public override void Init (Action terminalResized)
Clipboard = new CursesClipboard ();
}
}
}

ClearContents ();
StartReportingMouseMoves ();
Expand Down

0 comments on commit 551b888

Please sign in to comment.