Why does Tree ignore the markup elements and the guide lines setting? #378
-
I have a very basic example of var root = new Tree("Root").Guide(TreeGuide.BoldLine);
root.AddNode("[yellow]Foo[/]")
.AddNode("[strikethrough blue]Qux[/]");
root.AddNode("[yellow]Bar[/]");
AnsiConsole.Render(root); However, the output is not as expected: As you can see, the colors are applied, but the The version of Spectre.Console is 0.39.0. The version of PowerShell is 5.1.18362.1171. What am I missing? It must be something related to my env, 'cause it's very basic to be unnoticed all this time, but I can't figure out what's wrong. I would appreciate any hint. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@yansklyarenko It doesn't consider your console to support Unicode characters or it thinks your terminal doesn't support ANSI escape sequences. You can override this behavior by setting the terminal encoding to UTF-8 explicitly. The VT code for What does |
Beta Was this translation helpful? Give feedback.
@yansklyarenko It doesn't consider your console to support Unicode characters or it thinks your terminal doesn't support ANSI escape sequences. You can override this behavior by setting the terminal encoding to UTF-8 explicitly.
The VT code for
strikethrough
is also not supported in all terminals.What does
dotnet example info
say?