Skip to content

Instantly share code, notes, and snippets.

View Brogie's full-sized avatar
👀
👁️👄👁️

Jack Brogan Brogie

👀
👁️👄👁️
View GitHub Profile
@Brogie
Brogie / ConsoleMenu
Last active January 26, 2017 16:42
This will make a menu for the console in C#
static int Menu(string[] inArray) {
bool loopComplete = false;
int topOffset = Console.CursorTop;
int bottomOffset = 0;
int selectedItem = 0;
ConsoleKeyInfo kb;
Console.CursorVisible = false;
//this will resise the console if the amount of elements in the list are too big