A straightforward console menu library designed to streamline user interactions in console applications. Works on every terminal that supports ANSI escape codes.
Dotmenu can be added to your project with:
dotnet add package DotmenuCreating a menu is similar to creating a host for modern .NET applications:
Menu.CreateDefaultBuilder()
.SetTitle("Sample")
.SetPrefix("")
.SetSelector(">")
.AddOption<PlayOption>()
.AddOption<CreditsOption>()
.AddOption(text: "Exit", static () => Environment.Exit(0))
.Build()
.Run();Currently, there are a few builders available to help you create menus:
Menu.CreateDefaultBuilder()Menu.CreateCenteredBuilder()
Special thanks to tacosontitan for adding unit tests, making hangman sample and making new API Surface. And thanks to samwise for fixing bugs.
For more documentation on how to create and configure menus please read the wiki at dotmenu.natesworks.com
