mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-11-03 02:25:26 +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
@@ -32,7 +32,7 @@ namespace Spectre.Console.Examples
|
||||
|
||||
private static void Render(string title, IRenderable chart)
|
||||
{
|
||||
AnsiConsole.Render(
|
||||
AnsiConsole.Write(
|
||||
new Panel(chart)
|
||||
.Padding(1, 1)
|
||||
.Header(title));
|
||||
|
||||
Reference in New Issue
Block a user