CTRL + C seems ineffective #1109

Closed
opened 2026-01-30 22:16:44 +00:00 by claunia · 6 comments
Owner

Originally created by @Ushernrt on GitHub (May 15, 2019).

When I used SSH to connect to Ubuntu, the program did not stop when I press Ctrl + C.

Does anyone have the same problem?
image

Originally created by @Ushernrt on GitHub (May 15, 2019). When I used SSH to connect to Ubuntu, the program did not stop when I press Ctrl + C. Does anyone have the same problem? ![image](https://user-images.githubusercontent.com/13357418/57744733-04275200-76fd-11e9-8a02-d48cabc3d2ab.png)
claunia added the Issue-Question label 2026-01-30 22:16:44 +00:00
Author
Owner

@mdtauk commented on GitHub (May 15, 2019):

Ctrl+C is a keyboard shortcut for copy on Windows. Could that be causing a conflict?

@mdtauk commented on GitHub (May 15, 2019): Ctrl+C is a keyboard shortcut for copy on Windows. Could that be causing a conflict?
Author
Owner

@DHowett-MSFT commented on GitHub (May 15, 2019):

Based on the way the output stopped and was followed by a ^C, it seems like it was effective? Is it slower than you’d expect to respond?

@DHowett-MSFT commented on GitHub (May 15, 2019): Based on the way the output stopped and was followed by a ^C, it seems like it was effective? Is it slower than you’d expect to respond?
Author
Owner

@Ushernrt commented on GitHub (May 15, 2019):

@DHowett-MSFT Yes, when I press Ctrl + C, It can't stop immediately.

@Ushernrt commented on GitHub (May 15, 2019): @DHowett-MSFT Yes, when I press Ctrl + C, It can't stop immediately.
Author
Owner

@zadjii-msft commented on GitHub (May 15, 2019):

Does this repro in other shells, or just OpenSSH? For example, does it repro in wsl? Could you try wsl's ssh?

How about other commands? Perhaps there's a chance that that particular command is slow to respond to a Ctrl+C, while something else (ping?) might be more responsive.

If you're seeing it consistently in lots of different commandline applications, then this is probably a connection or conpty issue.

@zadjii-msft commented on GitHub (May 15, 2019): Does this repro in other shells, or just OpenSSH? For example, does it repro in wsl? Could you try wsl's ssh? How about other commands? Perhaps there's a chance that that _particular_ command is slow to respond to a Ctrl+C, while something else (`ping`?) might be more responsive. If you're seeing it consistently in lots of different commandline applications, then this is probably a connection or conpty issue.
Author
Owner

@Ushernrt commented on GitHub (May 16, 2019):

@zadjii-msft Yes, When I use ping, it is more responsive.

@Ushernrt commented on GitHub (May 16, 2019): @zadjii-msft Yes, When I use ping, it is more responsive.
Author
Owner

@dropdevrahul commented on GitHub (May 16, 2019):

can we close this issue now? or any further checks are required?

@dropdevrahul commented on GitHub (May 16, 2019): can we close this issue now? or any further checks are required?
Sign in to join this conversation.
No Label Issue-Question
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1109