-
Notifications
You must be signed in to change notification settings - Fork 105
meshcmd amtterm: do not disconnect on ctrl-c #112
Description
Hi,
using "meshcmd amtterm" in Linux to connect to another Linux host has the drawback that Ctrl-C will interrupt the SOL connection. But when connected to another linux host, ctrl-c should interrupt what you do on this remote host (just like when connecting with ssh to a remote host: ctrl-c will interrupt what you do on the remote host and not kill the ssh connection to that remote host).
Other SOL programs have a special key combination like Ctrl-] to disconnect the SOL connection, so I wonder if that could be done for "meshcmd amtterm", too. I looked at meshcmd.js, amt-redir-duk.js and amt-sol.js but didn't see an obvious place where to a) catch ctrl-c and send it to the remote console and b) use a different key combination.
There is only obj.socket.on('close'... so I guess the closing with ctrl-c is done at a different point.
Is there a way to change that ctrl-c to sth. else? amtterm is otherwise somewhat unusable for connecting to a linux host...
Many thanks!
cu,
Frank