From 1c067b201730e3da51ff6f1384931bcabc90d3db Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 16 Oct 2015 17:02:59 -0700 Subject: [PATCH] Remove Console.WriteLine(HandleControlC) Ctrl-C works. If a command is running, it stops it and returns. If one is not running, it seems to "suspend" the readline until enter is pressed again. --- src/powershell-run/main.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/powershell-run/main.cs b/src/powershell-run/main.cs index b5e76b6168..f0b212285c 100644 --- a/src/powershell-run/main.cs +++ b/src/powershell-run/main.cs @@ -322,7 +322,6 @@ namespace Microsoft.Samples.PowerShell.Host /// ConsoleCancelEventHandler. private void HandleControlC(object sender, ConsoleCancelEventArgs e) { - Console.WriteLine("HandleControlC"); try { lock (this.instanceLock)