Add fallback for unicode borders

This commit is contained in:
Patrik Svensson
2020-08-07 22:24:38 +02:00
parent d475e3b30a
commit fa85216554
14 changed files with 149 additions and 58 deletions

View File

@@ -26,7 +26,9 @@ namespace Spectre.Console
throw new ArgumentNullException(nameof(renderable));
}
foreach (var segment in renderable.Render(console.Encoding, console.Width))
var options = new RenderContext(console.Encoding, console.Capabilities.LegacyConsole);
foreach (var segment in renderable.Render(options, console.Width))
{
if (!segment.Style.Equals(Style.Plain))
{