rust-ctrlc icon indicating copy to clipboard operation
rust-ctrlc copied to clipboard

can it be made working in msys64 as well? seems to work in windows cmd only.

Open emabee opened this issue 9 years ago • 5 comments

emabee avatar Sep 02 '16 13:09 emabee

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.

Detegr avatar Sep 04 '16 14:09 Detegr

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.

henninglive avatar Feb 03 '17 23:02 henninglive

~~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.

henninglive avatar Jun 17 '17 15:06 henninglive

Is this related to it not working in Cygwin, or is that a separate issue?

Sgeo avatar Jun 12 '18 23:06 Sgeo

Yes, it's the same bug. msys2 is based on cygwin, both use mintty.

henninglive avatar Jun 13 '18 00:06 henninglive

Tested with MSYS2 on Windows 10. Works as expected.

Detegr avatar May 20 '23 18:05 Detegr