Skip to content
A console base UI menu (old school) navigation using arrow keys
C#
Branch: master
Clone or download
arthurvaverko Merge pull request #4 from aemarco/master
added Support for Seperatorlines
Latest commit 15ca713 Jul 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ConsoleMenu added Support for Seperatorlines Jul 21, 2019
ConsoleMenuTest Added support for net core Jun 4, 2019
.gitattributes Add .gitignore and .gitattributes. Sep 5, 2017
.gitignore Add .gitignore and .gitattributes. Sep 5, 2017
ConsoleMenu.sln Added support for net core Jun 4, 2019
LICENSE Initial commit Sep 5, 2017
README.md added badges Dec 13, 2017

README.md

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);
		}
	}
}
You can’t perform that action at this time.