wsltty icon indicating copy to clipboard operation
wsltty copied to clipboard

close button don't work for 3.8.0.3

Open xuefer opened this issue 4 months ago • 4 comments

less often happen in 3.8.0 but now more likely to happen in 3.8.0.3

  1. open wsltty
  2. stay in command line
  3. press the close button, (expect the window close but it stay open)
  4. type something it seems to accept input, but it's actually no, press ENTER won't execute the command

check in procexp.exe

expected:

Image

actual:

Image

windows 10 conhsot: 1.23.2507.29002

xuefer avatar Aug 31 '25 05:08 xuefer

Is that on Windows 10?

mintty avatar Aug 31 '25 14:08 mintty

Is that on Windows 10?

yes

xuefer avatar Aug 31 '25 19:08 xuefer

Press Shift while clicking on the Close button to force closing the terminal. For normal closing, mintty sends a KILL signal to the child application (normally a shell), which would then terminate, thus closing the pty terminal communication, thus in turn causing mintty itself to terminate.

Since 3.8.0, wsl.exe is used by default to run WSL (instead of wslbridge2 as before). The point is this is a Windows program, not a cygwin program, so its response to POSIX-like signals is apparently differrent. Well, it works in Windows 11 but they may have changed something. Mintty could in fact check WSL mode and always force-close in that case...

mintty avatar Sep 15 '25 16:09 mintty

If Control+Shift+letter shortcuts are enabled, also Ctrl+Shift+W would close.

mintty avatar Sep 15 '25 17:09 mintty