程序无法中断 ^C #18153

Closed
opened 2026-01-31 06:05:14 +00:00 by claunia · 6 comments
Owner

Originally created by @Klosw on GitHub (Aug 11, 2022).

Windows Terminal version

1.14.1962.0

Windows build number

Microsoft Windows [版本 10.0.19044.1889]

Other Software

No response

Steps to reproduce

使用 git log 后

Expected Behavior

中断程序

Actual Behavior

使用 Ctrl+C 无法中断程序, 使用 Ctrl+ Pause 后 能进入输入命令 ,但是按 Ctrl+C 还是会显示 git log 的日志

Originally created by @Klosw on GitHub (Aug 11, 2022). ### Windows Terminal version 1.14.1962.0 ### Windows build number Microsoft Windows [版本 10.0.19044.1889] ### Other Software _No response_ ### Steps to reproduce 使用 git log 后 ### Expected Behavior 中断程序 ### Actual Behavior 使用 Ctrl+C 无法中断程序, 使用 Ctrl+ Pause 后 能进入输入命令 ,但是按 Ctrl+C 还是会显示 git log 的日志
claunia added the Needs-TriageIssue-BugNeeds-Tag-FixNeeds-Attention labels 2026-01-31 06:05:14 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 11, 2022):

How did you set up and run git log? Mingw? WSL? Via ssh/?

Sounds vaguely like:

@zadjii-msft commented on GitHub (Aug 11, 2022): How did you set up and run `git log`? Mingw? WSL? Via ssh/? Sounds vaguely like: * #8034 * #13503
Author
Owner

@Klosw commented on GitHub (Aug 13, 2022):

就是 win 版本的 git

@Klosw commented on GitHub (Aug 13, 2022): > 就是 win 版本的 git
Author
Owner

@Klosw commented on GitHub (Aug 13, 2022):

image

How did you set up and run git log? Mingw? WSL? Via ssh/?

Sounds vaguely like:

类似这样 的 但是 log必须超过屏幕

@Klosw commented on GitHub (Aug 13, 2022): ![image](https://user-images.githubusercontent.com/13143959/184493282-627f12b4-a725-4c4a-b618-030376845272.png) > How did you set up and run `git log`? Mingw? WSL? Via ssh/? > > Sounds vaguely like: > > * [CTRL C doesn't work properly on gitbash #8034](https://github.com/microsoft/terminal/issues/8034) > * [Ctrl+c doesn't work after have used `ssh` in Powershell in the same terminal session #13503](https://github.com/microsoft/terminal/issues/13503) 类似这样 的 但是 log必须超过屏幕
Author
Owner

@Klosw commented on GitHub (Aug 13, 2022):

坏了 cmd 也不响应

@Klosw commented on GitHub (Aug 13, 2022): 坏了 cmd 也不响应
Author
Owner

@zadjii-msft commented on GitHub (Aug 15, 2022):

Okay, another test. Can you run:

git --version
where git

In a CMD tab/?

Your settings file might also be interesting, if only to confirm that nothing is bound to ctrl+c. (You might have ctrl+c bound to copy, but that should still send a ^C when there's no text selected)

@zadjii-msft commented on GitHub (Aug 15, 2022): Okay, another test. Can you run: ``` git --version where git ``` In a CMD tab/? Your settings file might also be interesting, if only to confirm that nothing is bound to `ctrl+c`. (You might have `ctrl+c` bound to `copy`, but that should still send a ^C when there's no text selected)
Author
Owner

@Klosw commented on GitHub (Aug 17, 2022):

Okay, another test. Can you run:

git --version
where git

In a CMD tab/?

Your settings file might also be interesting, if only to confirm that nothing is bound to ctrl+c. (You might have ctrl+c bound to copy, but that should still send a ^C when there's no text selected)

It's the same question

CTRL C doesn't work properly on gitbash #8034

@Klosw commented on GitHub (Aug 17, 2022): > Okay, another test. Can you run: > > ``` > git --version > where git > ``` > > In a CMD tab/? > > Your settings file might also be interesting, if only to confirm that nothing is bound to `ctrl+c`. (You might have `ctrl+c` bound to `copy`, but that should still send a ^C when there's no text selected) It's the same question [CTRL C doesn't work properly on gitbash #8034](https://github.com/microsoft/terminal/issues/8034)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18153