mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
LineTreeGuide should not fall back to ASCII
If the user's environment didn't support unicode, we used to fall back to using the AsciiTreeGuide if LineTreeGuide was being used (which it is by default). This commit removes that fallback since the characters used in LineTreeGuide is covered by extended ASCII, which SHOULD be fine in almost all scenarios. Closes #324
This commit is contained in:

committed by
Phil Scott

parent
aa59f6cd55
commit
58eff30787
@ -16,7 +16,7 @@ namespace Spectre.Console.Examples
|
||||
// Create the tree
|
||||
var tree = new Tree("Root")
|
||||
.Style(Style.Parse("red"))
|
||||
.Guide(TreeGuide.BoldLine);
|
||||
.Guide(TreeGuide.Line);
|
||||
|
||||
// Add some nodes
|
||||
var foo = tree.AddNode("[yellow]Foo[/]");
|
||||
|
Reference in New Issue
Block a user