4

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?

Giacomo1968
  • 58,727
HSuke
  • 531

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 PowerShell.

Giacomo1968
  • 58,727
HSuke
  • 531