Skip to content

Commit 27cfc75

Browse files
committed
Really exit from test program when typing exit
Exit wasn't exiting anymore because the thread that reads keys was blocked.
1 parent 931defe commit 27cfc75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TestPSReadLine/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static void Main()
116116
Console.WriteLine(line);
117117
line = line.Trim();
118118
if (line.Equals("exit"))
119-
break;
119+
Environment.Exit(0);
120120
if (line.Equals("cmd"))
121121
PSConsoleReadLine.SetOptions(new SetPSReadlineOption {EditMode = EditMode.Windows});
122122
if (line.Equals("emacs"))

0 commit comments

Comments
 (0)