Closing the last tab doesn't close the Terminal #898

Closed
opened 2026-01-30 22:08:38 +00:00 by claunia · 5 comments
Owner

Originally created by @zadjii-msft on GitHub (May 9, 2019).

From #460:

Closing the terminal when the last tab is closed is also something we should be doing, but that might be a bit trickier of a PR. I think we're manually suppressing the close action on the last tab currently, but that could be replaced with just closing the app (somehow).

Originally created by @zadjii-msft on GitHub (May 9, 2019). From #460: > Closing the terminal when the last tab is closed is also something we should be doing, but that might be a bit trickier of a PR. I think we're manually suppressing the close action on the last tab currently, but that could be replaced with just closing the app (somehow).
Author
Owner

@mdtauk commented on GitHub (May 9, 2019):

You could disable the tabs ability to close when it is the only tab, so to exit you must click on the close button on the window itself

@mdtauk commented on GitHub (May 9, 2019): You could disable the tabs ability to close when it is the only tab, so to exit you must click on the close button on the window itself
Author
Owner

@tkmikan commented on GitHub (May 10, 2019):

With "alwaysShowTabs": true, the terminal is closed after a middle/wheel click at the last tab, but it takes about 3-5 sec or more.
(nothing happens when clicking the close button of the last tab).

@tkmikan commented on GitHub (May 10, 2019): With `"alwaysShowTabs": true`, the terminal is closed after a middle/wheel click at the last tab, but it takes about 3-5 sec or more. (nothing happens when clicking the close button of the last tab).
Author
Owner

@bef178 commented on GitHub (May 13, 2019):

Do we settle what is the expected behavior?

@bef178 commented on GitHub (May 13, 2019): Do we settle what is the expected behavior?
Author
Owner

@zadjii-msft commented on GitHub (May 13, 2019):

@mdtauk that seems like a good and reasonable setting, like preventing accidental closing with Ctrl+W.

@tkmikan I believe the behavior you're seeing is that the terminal actually crashes when you middle click the last tab. I believe that fix is #648, though that just prevents closing the last tab with middle click.

Should closing the last tab with the tab's close button and Ctrl+W be enabled, we should also make sure it's possible to close the last tab with middle-click again.

@zadjii-msft commented on GitHub (May 13, 2019): @mdtauk that seems like a good and reasonable _setting_, like preventing accidental closing with Ctrl+W. @tkmikan I believe the behavior you're seeing is that the terminal actually _crashes_ when you middle click the last tab. I believe that fix is #648, though that just prevents closing the last tab with middle click. Should closing the last tab with the tab's close button and Ctrl+W be enabled, we should also make sure it's possible to close the last tab with middle-click again.
Author
Owner

@DHowett-MSFT commented on GitHub (May 29, 2019):

I believe this is done? Somebody fact-check me?

@DHowett-MSFT commented on GitHub (May 29, 2019): I believe this is done? Somebody fact-check me?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#898