mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-20 02:32:50 +08:00
Merge pull request #1218 from phillip-haydon/patch-1
This commit is contained in:
commit
3ec0fee795
@ -29,13 +29,13 @@ var fruits = AnsiConsole.Prompt(
|
|||||||
"[grey](Press [blue]<space>[/] to toggle a fruit, " +
|
"[grey](Press [blue]<space>[/] to toggle a fruit, " +
|
||||||
"[green]<enter>[/] to accept)[/]")
|
"[green]<enter>[/] to accept)[/]")
|
||||||
.AddChoices(new[] {
|
.AddChoices(new[] {
|
||||||
"Apple", "Apricot", "Avocado",
|
"Apple", "Apricot", "Avocado",
|
||||||
"Banana", "Blackcurrant", "Blueberry",
|
"Banana", "Blackcurrant", "Blueberry",
|
||||||
"Cherry", "Cloudberry", "Cocunut",
|
"Cherry", "Cloudberry", "Coconut",
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Write the selected fruits to the terminal
|
// Write the selected fruits to the terminal
|
||||||
foreach (string fruit in fruits)
|
foreach (string fruit in fruits)
|
||||||
{
|
{
|
||||||
AnsiConsole.WriteLine(fruit);
|
AnsiConsole.WriteLine(fruit);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user