I have recently updated to latest versions of ConEmu & Git for Windows. I noticed that Ctrl+C keyboard shortcut is freezing the console for a while, and then suddenly it stops the current process. I usually use it for running NPM/Node.js related tools.
Using GitBash outside of ConEmu, Ctrl+C works as expected. It also works with CMD or PowerShell.
I have uploaded logs here
Compare the behavior with previous ConEmu build.
I have build 140814 on my laptop and it stops the process instantly with the same version of mintty (that comes with latest Git for Windows). Do you have a specific build in mind?
There is no version 814.
Please go to release archives and check which breaks the behavior.
Of course, it must be done on the same machine with same config.
I mean https://github.com/Maximus5/ConEmu/releases/tag/v14.08.14 - I never updated it on my laptop so that's why it's so old.
Ok, I'll try with every build until I find one that works. Thanks!
I see... Try to jump by month
Why do you mention mintty in the subject?
Because I thought that that's the terminal emulator which is being used, but I see now that the command points to bash "%ConEmuDir%\..\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i
I edited the title to remove any haziness for other users.
It's unclear, what is the problem - freezes, stops, smth else? May you create a short video?
Can you confirm that build 150908 is OK, and 151006 introduced the problem?
Hi, sorry if I was unclear but I'll try to explain as thorough as I can:
Steps:
"%ConEmuDir%\..\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i)npm install command in a project with a large number of dependencies (you can find a open source project on GitHub - pick this one if you want: https://github.com/erikras/react-redux-universal-hot-example)Expected result:
Actual result:
ConEmu 150908 [64] seems to work for me on multiple devices. The latest builds on which I can reproduce the issue were tested on all devices and the above problem was reproducible on all of them.
Thanks,
Raul.
I have the same issue with Cygwin console. The delay is about 2 minutes from when I press Ctrl+C on my node.js app and when it quits.
I'm also having the same problem.
When using Con Emu, Git bash will occasionally hang for ~30 seconds after pressing Ctrl-C.
ConEmu -log, reproduce the problem, and upload LogFiles.I've been able to reproduce the problem consistently by holding down ctrl-c. However, there have been instances where just pressing ctrl-c once has caused this issue.
Logs:
ConEmu-gui-10340.txt
ConEmu-input-10320.txt
ConEmuC64-size-10320.txt
By hang, I mean the git bash instance will not take any input and the prompt doesn't appear until about 30 seconds after I've pressed ctrl-c.
The screenshot below shows that there is no prompt after pressing ctrl-c.

Hi,
I have captured a video, you can find it here.
There are 2 annotations first one when I pres Ctrl+C and the second one when the process stops.
There are also two more attempts, the second time it looks like it worked instantly but then the third attempt it also takes some time to end the process.
Some dumps here ... I'm not good at debugging windows app, if they are not useful please let me know and I'll try again.
This complain must be addressed to NPM/Node.js authors.
I've examined the logs, your Ctrl+C events are successfully delivered to console processes, immediately.
However, there is action to "Terminate all but shell processes in the current console". Personally I set it to Ctrl+X and use it often. But it really terminates processes, they will not receive any signals.
https://conemu.github.io/en/SettingsHotkeys.html
Or may be not... confused by different reporters and dumps.
Perhaps, something blocks your prompt, but I don't think it's a ConEmu problem. You may try to use ProcessMonitor to check console processes activities.
It looks like the reason why conemu hangs after using ctrl+c on some node commands is that a process will be blocking. In my case it was sh.exe that was still running. Using kill active process fixes that problem. So that's not a problem on your end.
However, in the case of just holding down ctrl+c on a blank prompt that still causes the git bash instance to hang. I have inject conemuHk enabled, and the status bar shows the active process is bash.exe.
So, pressing Ctrl+C in bash prompt may cause other processes spawning. That's because bash prompt may be very complex, especially if you show git properties there.
Anyway, It's hard to believe that this issues relates to ConEmu and can't be reproduced in the real Windows console
I propose to close the issue, because it's not related to ConEmu itself.
Also, there is cygwin connector nowadays.
npm install and npm publish hangs conemu without pressing Ctrl+C, just running those commands for any package in any case hangs current tab and I need to close tab. Problem is actulal for version 151210 but everything works fine in version 150813d.
Without exact dumps and screeshots "hangs" are not accepted.
Nobody can reproduce some abstract bug occured in abstract environment.
https://conemu.github.io/en/BadIssue.html
@Maximus5 I see, I'll try to provide instructions to reproduce it, that's why I did not create an issue and wrote just a comment in nearest one. But I think that npm started to use such esc sequences to draw progress bar which are not supported or so. Ctrl+C is not a reason of hanging. Those npm commands which do not display progress works fine for me.
Same issues for me, at times Ctrl+C just refuses to work and I have to go Kill active process.
This happens both when running e.g. npm install, and when running tests/watchers - e.g. mocha or gulp.
@jeffijoe As I said before, that is NOT a ConEmu issue!
https://conemu.github.io/en/ThirdPartyProblems.html
@Maximus5 When done through the actual git bash it works every time.
I do not believe in that. How exactly do you start that what you named "git bash"?
It's C:\Program Files\Git\git-bash.exe for the regular one outside ConEmu, but my ConEmu task for Git Bash is:
""C:\Program Files\Git\bin\sh.exe" --login -i"
When you run git-bash.exe it starts mintty.exe. Of course this is not a standard Windows terminal, when you run bash in standard Windows terminal bash behaves differently. So, why do you think that ConEmu must fix bash bugs?
https://conemu.github.io/en/CygwinMsys.html
@Maximus5 is right, if you run C:\Program Files\Git\bin\sh.exe" -l -i from Windows Run (Win+R), and you'll get the same behaviour. The only way to make it stop is to Kill active process. I've assigned it to a keyboard shortcut and that's it. Probably this issue needs to be closed, for sure there's nothing to be done on ConEmu side.
I added a paragraph for mintty
https://conemu.github.io/en/ThirdPartyProblems.html#mintty
Have a look on this: https://github.com/git-for-windows/git/issues/227
Yeah. The problem comes from different implementations of Ctrl+C processing in cygwin/msys applications. POSIX applications are ready to process "signals" in most cases, but often ignores console events.
@raulmatei How did you assign the keyboard shortcut? I can't seem to find the right command to "Kill active process", only to terminate the current console.
@jeffijoe I think you want "Terminate active process in the current console" in _Settings > Keys&Macro_
@xylographe that will kill the console tab as well, and so is not acting like "Close or kill -> Kill active process" does.
@jeffijoe that will not. Why do you think so?
@Maximus5 Ah, it seems I was too fast - it killed bash after it killed node, I was just too impatient for node to die and so I pressed it again, killing the console.
@xylographe is right, the command is "Terminate active process in the current console"

It should work perfectly.
Yes, got it, thanks!
@Maximus5 thank you for such a great app!
I guess many of us (me) got too spoiled by Mac, which Ctrl + C worked perfectly. all the time. but Windows... another realm ha. That shortcut @raulmatei screenshotted worked perfectly.
Most helpful comment
@xylographe is right, the command is "Terminate active process in the current console"

It should work perfectly.