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
Feature: Only Programatically Send String when Idle #902
Feature: Only Programatically Send String when Idle #902
Conversation
Also removes obsolete option which is now located on "SSH Settings" tab Also updates the screenshot to match current look of config screen
Very cool feature Henrique :) I was indeed looking for something like this :) Very minor question : why did you remove the documentation about "Create SOCKS tunnel" / |
It was intentional because this feature is no longer present on that configuration screen. I think it was moved here some time ago:
Here it looks like this, but I'm not using the default font:
Will change to Idle only, but I think omitting "secs" from the other label could be bad. Will make it more compact anyways.
Will do! |
@gfrenoy Done! |
Add "Only when Idle" modifier to the "Programmatically Send String" function of Advanced Parameters connection settings.
The main use-case for this is when your send-string is meant to bypass firewalls that ignore TCP Keep-Alive and kill idle sessions anyway, however could interfere with normal terminal usage when actively using the session.
Right-clicking and using the "Stop programmatically string sending" feature works for this, but it's manual, annoying, and prone to human error.
This new modifier, when enabled (it's off by default, of course) re-adds the timed event (
Glib::Timeout
), therefore resetting the timer, each time one of the following happens:Also includes the extraction of the timer event adder to a separate private function, and the deduplication of one block of code that did the same thing inside the "Stop programmatically string sending" feature.