From 274c9b0d421d9b2a8c3497733c2d61e6716abaf8 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Mon, 6 Dec 2021 16:16:50 +0200 Subject: [PATCH] Add -w or --wait to wait for keypress before close --- Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Program.cs b/Program.cs index 770988f..9470ee1 100644 --- a/Program.cs +++ b/Program.cs @@ -39,6 +39,10 @@ if(printSteps) { algoBoard.RunIdaStar(); PrintBoard(0, true, clearScreen: printSteps); +if (args.Contains("-w") || args.Contains("--wait")) { + Console.ReadKey(); +} + static void FormattedLabRow(string line) { char[] characters = line.ToCharArray(); foreach (char c in characters) {