Interrupting command

Topics: User Interface
Jun 29, 2010 at 3:20 PM

Is there a way to interrupt a running command, similar to what Ctr+C does in PowerShell or bash?

Jun 29, 2010 at 6:52 PM
+1. This is a major inconvenience.
Coordinator
Jul 24, 2010 at 4:15 AM

Hit Escape.

 

Aug 29, 2010 at 7:00 PM

Seems a lot more verbose:

PS C:\Program Files\PoshConsole> start-sleep 10

The pipeline has been stopped.

PS C:\Program Files\PoshConsole>VERBOSE: PowerShell Pipeline was: Stopped

Can this be improved? (powershell.exe just returns the prompt with no message on Ctrl-C). Apologies if I missed something, I can find no documentation (and I'm new to PoshConsole).

Paul.

Coordinator
Aug 30, 2010 at 5:25 AM

That’s a good point. I originally made it that way because PoshConsole’s “Esc” doesn’t always break the way you would with Ctrl+C (eg: if you at a Read-Host prompt, you still have to hit enter to dismiss that prompt), so I wanted to … basically acknowledge what had happened.

I suppose that the output for that should be optional …

And of course, I should fix the fact that hitting it at the read-host prompt doesn’t break out of that prompt.

Coordinator
Aug 30, 2010 at 5:26 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Aug 30, 2010 at 5:28 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.