readline
readline copied to clipboard
Disable suspend
I am using this on the other end of crypto/ssh and it is working well save for two issues. The biggest of those is that even though you can map stdio to the ssh connection, the handler for ctrl-z assumes that readline is local. If a user logs into the server and hits ctrl-z, it will suspend the server.
My suggestion is to document this, and add an option to the Config struct similar to the FuncMakeRaw so that users can replace the suspend logic with a noop or something more appropriate.
The other issue is that newlines are appearing without the carriage return on the other side, but that may be my mistake, I will open a different issue for that later.
Maybe a pull request #104 may solve your problem, it brings ability to filter input and mask for example Ctrl-Z before it get processed by main loop :-)
If you need more (not only mask Ctrl-Z but assign it different action), some more modifications would be needed :-/