mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Add AnsiConsole.Write
method
This commit also obsoletes the `AnsiConsole.Render` method. Closes #576
This commit is contained in:

committed by
Phil Scott

parent
ca2e6ce0ad
commit
e0395dfa2b
@ -39,9 +39,9 @@ namespace Spectre.Console.Examples
|
||||
private static void Render(IRenderable canvas, string title)
|
||||
{
|
||||
AnsiConsole.WriteLine();
|
||||
AnsiConsole.Render(new Rule($"[yellow]{title}[/]").LeftAligned().RuleStyle("grey"));
|
||||
AnsiConsole.Write(new Rule($"[yellow]{title}[/]").LeftAligned().RuleStyle("grey"));
|
||||
AnsiConsole.WriteLine();
|
||||
AnsiConsole.Render(canvas);
|
||||
AnsiConsole.Write(canvas);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user