mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-08-04 12:57:59 +08:00
Initial work on TextPath widget
This commit is contained in:

committed by
Phil Scott

parent
d6cdd1fbda
commit
66fc949e2a
20
examples/Console/Paths/Program.cs
Normal file
20
examples/Console/Paths/Program.cs
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user