-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add option to enable disconnect notifications #39
Comments
I tried to revive 118210c but it doesn't work well in many cases. Basically, this is very hard to do without a deep integration with a terminal emulator. I could pass some escape sequence letting the terminal emulator know that there is a disconnect, but they would have to render something and handle removing it after we reconnect. |
Actually maybe I can change the title of the window. Let me look into that |
Actually it's non-trivial to change the window title. I tried setting PROMPT_COMMAND but that doesn't seem to be portable :-/ |
Perhaps you could do it for users of tmux at least, by manipulating the status bar(s)? In the event control mode allows for setting stuff like that, you could probably flash a colour or similar? Seems there's a fair bit of customisation available: As long as you can retrieve current settings, you could change it, then change it back after a delay. You could even have a place holder for an indicator (such as "%%ETDCNT") that could contain the number of disconnections etc. I am not sure how feasible all this is, just a thought. |
@krayon This is a great idea but I don't have time at the moment. Would this be something that you would be interested in submitting a PR for? If you made a standalone C++ class with a connect() disconnect() API I can write the logic to call it. |
Any further plans here? This would be really helpful, especially when trying to differentiate cases of disconnection vs frozen programs at a glance. (The tmux approach proposed would work for me) |
@ddickstein Care to submit a PR? :-) I'm a tmux -CC user so this isn't high pri for me TBQH but happy to review a PR for it. |
What changes do you think are necessary to get it to work? I haven't spent much time working in C++ and I don't know the codebase here. Do you have a rough sense of how much work it is and what the steps would be? |
@MisterTea I absolutely would but unfortunately I don't have the time and I don't actually use EternalTCP myself. I was just evaluating it for someone and had that idea. I'm sorry I can't offer a PR for this :( |
ET used to notify people on disconnect but this was disabled since it caused issues with "tmux -CC". This issue is to add that back as an option for people who do not use tmux control mode
The text was updated successfully, but these errors were encountered: