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

rlwrap could mirror client's interrupt character earlier #110

Open
hanslub42 opened this issue Jan 12, 2021 · 1 comment
Open

rlwrap could mirror client's interrupt character earlier #110

hanslub42 opened this issue Jan 12, 2021 · 1 comment

Comments

@hanslub42
Copy link
Owner

hanslub42 commented Jan 12, 2021

When the rlwrapped command changes its interrupt character (usually from CTRL-C to something else), rlwrap only follows suit after the next user input. It probably could already do this after the next client output (which will cover a lot of cases where the client does this at program start, and then outputs some kind of welcome banner)

Of course one can always use rlwrap --polling, but this will come at a cost (e.g.in battery life)

@hanslub42
Copy link
Owner Author

Another idea would be to let even a non--polling rlwrap poll once say 0.1 secs after spawning the client. Again, this would cover a great number of cases (though not all of them) where the client changes or disables its interrupt characters.

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

No branches or pull requests

1 participant