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
Describe the bug
There appears to be a space or "space-like" character added after IAnsiConsoleOutput.Width when writing a continuous string to the output. This causes problems using Spectre in scripting scenarios where the output string is needed to run further commands.
This behavior does not occur with BCL Console.Write(..)
To Reproduce
create new net6.0 console project with Spectre nuget package
create Program.cs as snippet below
open zsh shell
run echo $(dotnet run --project /path/to/Project/Project.csproj)
Expected behavior
The output should not have any special characters. It should be:
Information
Describe the bug
There appears to be a
space
or "space
-like" character added afterIAnsiConsoleOutput.Width
when writing a continuous string to the output. This causes problems using Spectre in scripting scenarios where the output string is needed to run further commands.This behavior does not occur with BCL
Console.Write(..)
To Reproduce
echo $(dotnet run --project /path/to/Project/Project.csproj)
Expected behavior
The output should not have any special characters. It should be:
Instead, it appears there is a something added after the 80'th character which the subshell interprets as space-like
Actual output:
This is more apparent if you pipe to
od
:echo $(dotnet run --project /path/to/Project/Project.csproj) | od -Ax -c
Program.cs
Possibly related to #216?
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: