Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Close Tab at logout" SSH option #210

Closed
eugenov opened this issue Sep 29, 2021 · 3 comments
Closed

"Close Tab at logout" SSH option #210

eugenov opened this issue Sep 29, 2021 · 3 comments

Comments

@eugenov
Copy link

eugenov commented Sep 29, 2021

Hello!
Can I set somewhere "Close Tab at ssh logout": true? Just for session, or WindTerm-wide? It's an option that helps to not use mouse when it's not necessarily.
Thank you.

@kingToolbox
Copy link
Owner

Sorry, there is currently no such setting, and I also recommend not to do so. Because WindTerm cannot distinguish whether the disconnection is caused by logout or other reasons. If the tab is closed as soon as the disconnection is detected, then sometimes important displayed content is also lost.

You can use the shortcut key Ctrl+Shift+W to quickly close tabs without using the mouse.

@eugenov
Copy link
Author

eugenov commented Sep 29, 2021

Ok, what about "Close Tab at broken session", when tab name becomes red?
UPD: ok, bad idea. for example, tabby somehow knows if session ended with logout and closes tab. But if session disconnected, tab still lives.
If it is not possible or easy, you could close issue.
Thanks!

@kingToolbox
Copy link
Owner

It is not difficult to implement this feature, but terminals should not actively perform too many operations, especially the close/shutdown operation. If there is no log, close session means that all output is lost. Obviously sometimes it will cause trouble to users.

Although using the shortcut key or the close button is a bit more troublesome, it is obviously more secure. So this issue will be closed, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants