Skip to content

Commit

Permalink
add a prompt when waiting for user input (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
starquake authored Jan 5, 2024
1 parent 4b77e73 commit 7bdc65d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -898,13 +898,15 @@ private static async Task InstallImagePack(string path, ImagePack pack)

private static void PauseExit(int exitcode = 0)
{
Console.WriteLine("Press any key to exit.");
Console.ReadLine(); //wait for input so the console doesn't auto close in windows
Environment.Exit(exitcode);
}

private static void Pause()
{
if(cliMode) return;
Console.WriteLine("Press any key to continue.");
Console.ReadLine();
}

Expand Down

0 comments on commit 7bdc65d

Please sign in to comment.