mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-08-04 04:47:59 +08:00

committed by
Phil Scott

parent
8fed3bc575
commit
225305f90e
13
examples/Console/Minimal/Program.cs
Normal file
13
examples/Console/Minimal/Program.cs
Normal file
@ -0,0 +1,13 @@
|
||||
// Write a markup line to the console
|
||||
MarkupLine("[yellow]Hello[/], [blue]World[/]!");
|
||||
|
||||
// Write text to the console
|
||||
WriteLine("Hello, World!");
|
||||
|
||||
// Write a table to the console
|
||||
Write(new Table()
|
||||
.RoundedBorder()
|
||||
.AddColumns("[red]Greeting[/]", "[red]Subject[/]")
|
||||
.AddRow("[yellow]Hello[/]", "World")
|
||||
.AddRow("[green]Oh hi[/]", "[blue u]Mark[/]"));
|
||||
|
Reference in New Issue
Block a user