mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-13 15:42:50 +08:00

* Add width to panels * Add height to panels * Replace RenderContext with RenderOptions * Remove exclusivity from alternative buffer * Add Layout widget * Add Align widget
14 lines
402 B
C#
14 lines
402 B
C#
using Spectre.Console;
|
|
|
|
namespace Figlet;
|
|
|
|
public static class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
AnsiConsole.Write(new FigletText("Left aligned").LeftJustified().Color(Color.Red));
|
|
AnsiConsole.Write(new FigletText("Centered").Centered().Color(Color.Green));
|
|
AnsiConsole.Write(new FigletText("Right aligned").RightJustified().Color(Color.Blue));
|
|
}
|
|
}
|