PowerShell Core + RoboCopy: Ctrl-C does not interrupt execution #17795

Open
opened 2026-01-31 05:53:39 +00:00 by claunia · 0 comments
Owner

Originally created by @doxxx on GitHub (Jun 24, 2022).

Windows Terminal version

1.13.11431.0

Windows build number

10.0.19044.1766

Other Software

PowerShell Core 7.2.5

Steps to reproduce

  1. Open PowerShell Core in Windows Terminal
  2. Run RoboCopy command to copy files from one directory to another
  3. Press Ctrl-C to interrupt

Expected Behavior

Robocopy execution is interrupted and control returns to the prompt.

Actual Behavior

When using PowerShell Core inside Windows Terminal, Ctrl-C does not interrupt Robocopy. Robocopy continues running and when it finishes, all the Ctrl-C presses are replayed at the prompt as they had been pressed after Robocopy had completed.

Ctrl-C to interrupt works in CMD running in Windows Terminal and in PowerShell Core using standard console window.

Originally created by @doxxx on GitHub (Jun 24, 2022). ### Windows Terminal version 1.13.11431.0 ### Windows build number 10.0.19044.1766 ### Other Software PowerShell Core 7.2.5 ### Steps to reproduce 1. Open PowerShell Core in Windows Terminal 2. Run RoboCopy command to copy files from one directory to another 3. Press Ctrl-C to interrupt ### Expected Behavior Robocopy execution is interrupted and control returns to the prompt. ### Actual Behavior When using PowerShell Core inside Windows Terminal, Ctrl-C does not interrupt Robocopy. Robocopy continues running and when it finishes, all the Ctrl-C presses are replayed at the prompt as they had been pressed after Robocopy had completed. Ctrl-C to interrupt works in CMD running in Windows Terminal and in PowerShell Core using standard console window.
claunia added the Needs-TriageIssue-BugNeeds-Tag-FixNeeds-Attention labels 2026-01-31 05:53:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17795