rust-ctrlc
rust-ctrlc copied to clipboard
can it be made working in msys64 as well? seems to work in windows cmd only.
I'm not aware how to support msys64 at the moment, but I don't think it would not be possible. I'll look into this as soon as I have time.
This is related to how mintty interacts with programs that use the native Windows API for command-line user interaction. A workaround is to use winpty which wraps your program and translates the Windows console API into the cygwin/msys2 posix API.
~~I noticed something funny, mintty/msys2 ignores CTRL+BREAK, while we treat CTRL+BREAK the same as CTRL+C. This means CTRL+BREAK works as expected under mintty/msys2 even though CTRL+C is broken.~~
Edit: Never mind, CTRL+BREAK is also broken, but it behaves differently. Quit is printed to the console before the the program terminates.
Is this related to it not working in Cygwin, or is that a separate issue?
Yes, it's the same bug. msys2 is based on cygwin, both use mintty.
Tested with MSYS2 on Windows 10. Works as expected.