ConsoleUI.ConsoleMenu 2.0.16

.NET Framework 4.5.2
There is a newer version of this package available.
See the version list below for details.
Install-Package ConsoleUI.ConsoleMenu -Version 2.0.16
dotnet add package ConsoleUI.ConsoleMenu --version 2.0.16
<PackageReference Include="ConsoleUI.ConsoleMenu" Version="2.0.16" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ConsoleUI.ConsoleMenu --version 2.0.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ConsoleUI.ConsoleMenu, 2.0.16"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ConsoleUI.ConsoleMenu as a Cake Addin
#addin nuget:?package=ConsoleUI.ConsoleMenu&version=2.0.16

// Install ConsoleUI.ConsoleMenu as a Cake Tool
#tool nuget:?package=ConsoleUI.ConsoleMenu&version=2.0.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Console Menu

Build status Nuget Version

A console base UI menu (old school) navigation using arrow keys

How it looks

Usage example

using ConsoleUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleMenuTest
{
	class Program
	{
		static void Main(string[] args)
		{
			var items = Enumerable.Range(1,20).Select(i => new ConsoleMenuItem($"Item{i}", itemCallback));
			var menu = new ConsoleMenu("This is a test menu", items);
			menu.RunConsoleMenu();
		}

		private static void itemCallback(string itemClicked)
		{
			Console.Clear();
			Console.WriteLine(itemClicked);
		}
	}
}
Product Versions
.NET Framework net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 7,992 6/4/2019
2.0.16 910 12/13/2017
2.0.15 729 12/13/2017
2.0.0 667 9/7/2017
1.0.0 755 9/5/2017