spectre.console
spectre.console copied to clipboard
CanvasImage is rendered incorrectly - partial display
Information
- OS: Windows
- Version: Version 10.0.19041 Build 19041
- Terminl: Windows Terminal
Describe the bug
CanvasImage is partially rendered
To Reproduce
var fileName = @"cake.png";
AnsiConsole.WriteLine(fileName);
var image = new CanvasImage(fileName).MaxWidth(32);
AnsiConsole.WriteLine();
AnsiConsole.Write(new Panel(image));
Full application:
https://github.com/NikiforovAll/cli-with-spectre-console
DownloadBot.cs
command contains code that uses CanvasImage.
Full application:
Expected behavior The image is drawn as expected.
Screenshots
Additional context
Shell: gitbash.exe. The issue is preserved in the Release version of the application.
The issue reproduces inside devcontainer (mcr.microsoft.com/vscode/devcontainers/dotnet)