2

In Windows command prompt, when you Ctrl-C out of a continuous ping, the terminal will display the statistics:

Ping statistics for ::1:
    Packets: Sent = 6, Received = 6, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C
^C

In PowerShell (v4), the ping statistics aren't there if you use Ctrl-C to break out of it. How do get around this?

Edit: Apparently, it's because the statistics aren't displayed in PowerShell ISE, which is what I was using, but are there in regular PowerShell.

Ƭᴇcʜιᴇ007
  • 111,883
  • 19
  • 201
  • 268
HSuke
  • 511
  • 1
  • 4
  • 10
  • 2
    As you found the answer to your own question, could you please create a real answer post and mark it as resolved ? This will help for future searches. Thanks. – Ob1lan Jun 05 '15 at 07:09
  • What command did you type into PowerShell? – Zian Choy Apr 30 '22 at 00:53

1 Answers1

1

It turns out that it was because I was using PowerShell ISE.

There is a difference in the way vanilla PowerShell and PowerShell ISE handle console input. If you want control-breaks to work the way they do in command prompt, you'll need to use vanilla PS.

HSuke
  • 511
  • 1
  • 4
  • 10