Initial work on TextPath widget

This commit is contained in:
Patrik Svensson
2022-02-17 22:39:51 +01:00
committed by Phil Scott
parent d6cdd1fbda
commit 66fc949e2a
5 changed files with 204 additions and 3 deletions

View File

@ -0,0 +1,20 @@
using System;
using System.Threading;
using Spectre.Console;
namespace Live;
public static class Program
{
public static void Main()
{
AnsiConsole.WriteLine();
AnsiConsole.Write(new TextPath(@"C:\Users\Patrik\Source\github\patriksvensson-forks\spectre.console\examples\Console\Paths"));
AnsiConsole.WriteLine();
var table = new Table().BorderColor(Color.Grey);
table.AddColumns("[grey]Index[/]", "[yellow]Path[/]");
table.AddRow(new Text("1"), new TextPath(@"C:\Users\Patrik\Source\github\patriksvensson-forks\spectre.console\examples\Console\Paths"));
AnsiConsole.Write(table);
}
}