Sporadic cannot ctrl+D to or enter to close the terminal #21979

Closed
opened 2026-01-31 07:59:52 +00:00 by claunia · 7 comments
Owner

Originally created by @dovholuknf on GitHub (Jul 17, 2024).

Windows Terminal version

Version: 1.21.1772.0

Windows build number

Microsoft Windows [Version 10.0.22631.3880]

Other Software

N/A

Steps to reproduce

No idea how to reproduce. Sometimes, after a long time open and running I notice the "track my mouse" feature stops working between panes and then when i exit the terminal it ends up printing:

[process exited with code 130 (0x00000082)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

but ctrl+d or enter don't exit the pane:
terminal-pane-example

Expected Behavior

I want the "track my mouse" feature to keep working and if i have to close the terminal, i expect the pane to actually close.

Actual Behavior

mouse tracking fails and ctrl+d/enter won't actually close the pane. the whole terminal window needs to be relaunched.

Originally created by @dovholuknf on GitHub (Jul 17, 2024). ### Windows Terminal version Version: 1.21.1772.0 ### Windows build number Microsoft Windows [Version 10.0.22631.3880] ### Other Software N/A ### Steps to reproduce No idea how to reproduce. Sometimes, after a long time open and running I notice the "track my mouse" feature stops working between panes and then when i exit the terminal it ends up printing: ``` [process exited with code 130 (0x00000082)] You can now close this terminal with Ctrl+D, or press Enter to restart. ``` but ctrl+d or enter don't exit the pane: ![terminal-pane-example](https://github.com/user-attachments/assets/7b66b6b6-39a4-4ad6-8de0-e95adf8bfb50) ### Expected Behavior I want the "track my mouse" feature to keep working and if i have to close the terminal, i expect the pane to actually close. ### Actual Behavior mouse tracking fails and ctrl+d/enter won't actually close the pane. the whole terminal window needs to be relaunched.
Author
Owner

@dovholuknf commented on GitHub (Jul 26, 2024):

I can't reproduce it on demand but it keeps happening. i did however go back to the released Version: 1.20.11781.0 and this is not a problem. I've moved away from the 'preview' for now because of this issue.

It might have to do with mouse tracking. Another example of how the mouse tracking seems to have failed and when i exit the terminal i get the Ctrl+D message

track

@dovholuknf commented on GitHub (Jul 26, 2024): I can't reproduce it on demand but it keeps happening. i did however go back to the released Version: 1.20.11781.0 and this is not a problem. I've moved away from the 'preview' for now because of this issue. It might have to do with mouse tracking. Another example of how the mouse tracking seems to have failed and when i exit the terminal i get the Ctrl+D message ![track](https://github.com/user-attachments/assets/1643cc27-3c36-4b63-9d89-9e0a449599c7)
Author
Owner

@dovholuknf commented on GitHub (Jul 29, 2024):

CTRL-D doesn't close the window either on the preview version. I can confirm that the 'stable' terminal 1.20.11781.0 properly responds to CTRL-D and closes the pane

@dovholuknf commented on GitHub (Jul 29, 2024): CTRL-D doesn't close the window either on the preview version. I can confirm that the 'stable' terminal `1.20.11781.0` properly responds to CTRL-D and closes the pane
Author
Owner

@vefatica commented on GitHub (Aug 19, 2024):

I can repro (every time) like this.

Start WT normally (one tab, normal window).
Go full-screen (F11).
Split vertical (Alt+Shift++)
"exit" the shell on the right (this is OK)
"exit" the remaining shell (error occurs)

Note that exiting the lefthand shell then the other one does not cause the error.

Ditto for Split Horizontal with "bottom" replacing "right" and the analogous note about which is exitted first.

@vefatica commented on GitHub (Aug 19, 2024): I can repro (every time) like this. Start WT normally (one tab, normal window). Go full-screen (F11). Split vertical (Alt+Shift++) "exit" the shell on the right (this is OK) "exit" the remaining shell (error occurs) Note that exiting the lefthand shell then the other one does not cause the error. Ditto for Split Horizontal with "bottom" replacing "right" and the analogous note about which is exitted first.
Author
Owner

@vefatica commented on GitHub (Aug 19, 2024):

It happens in WindowsTerminal 1.21.2406.25002 (preview) and not in WindowsTerminal 1.20.2406.26001.

@vefatica commented on GitHub (Aug 19, 2024): It happens in WindowsTerminal 1.21.2406.25002 (preview) and not in WindowsTerminal 1.20.2406.26001.
Author
Owner

@lhecker commented on GitHub (Aug 20, 2024):

This regressed in 5d46e317b2. Because the content isn't being reset anymore, after a split-pane two panes may share the same content object. Closing one pane will then cause both to be closed.

@lhecker commented on GitHub (Aug 20, 2024): This regressed in 5d46e317b29a709a4b585ab9fe83ad71c456b5df. Because the content isn't being reset anymore, after a split-pane two panes may share the same content object. Closing one pane will then cause both to be closed.
Author
Owner

@vefatica commented on GitHub (Aug 20, 2024):

@lhecker, If I understand your comment correctly (which may not be the case), then I don't see that. In my experiment, closing either pane leaves the other pane functional. As noted before, closing the new pane causes the original pane to exhibit the problem under discussion when it's closed. But closing the original pane does not cause the new pane to exhibit the problem when it's closed.

@vefatica commented on GitHub (Aug 20, 2024): @lhecker, If I understand your comment correctly (which may not be the case), then I don't see that. In my experiment, closing either pane leaves the other pane functional. As noted before, closing the new pane causes the original pane to exhibit the problem under discussion _when it's closed_. But closing the original pane does not cause the new pane to exhibit the problem _when it's closed_.
Author
Owner

@lhecker commented on GitHub (Aug 20, 2024):

When I said "closed" I was referring to an internal function called "Close" that removes some event handlers from the "content" of a pane. This is what causes Ctrl-D and Enter to seemingly not work. (It was confusingly worded. I'm sorry. 😣)

@lhecker commented on GitHub (Aug 20, 2024): When I said "closed" I was referring to an internal function called "Close" that removes some event handlers from the "content" of a pane. This is what causes Ctrl-D and Enter to seemingly not work. (It was confusingly worded. I'm sorry. 😣)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21979