node-webstream icon indicating copy to clipboard operation
node-webstream copied to clipboard

Intercept and relay ^C and friends in wsclient

Open mojodna opened this issue 14 years ago • 2 comments

^C currently kills the wsclient process rather than being relayed to the remote shell. This is somewhat inconvenient.

mojodna avatar Dec 21 '11 18:12 mojodna

I know, that's sucks. It's signal(), right?

-----Original Message----- From: Seth Fitzsimmons [mailto:[email protected]] Sent: Wednesday, December 21, 2011 8:24 PM To: Elad Ben-Israel Subject: [node-webstream] Intercept and relay ^C and friends in wsclient (#2)

^C currently kills the wsclient process rather than being relayed to the remote shell. This is somewhat inconvenient.


Reply to this email directly or view it on GitHub: https://github.com/eladb/node-webstream/issues/2

eladb avatar Dec 22 '11 11:12 eladb

Yeah, in wsclient (which is likely an incredibly useful debugging tool on its own). http://nodejs.org/docs/latest/api/process.html#signal_Events

I was thinking about other things like ^A, ^E, ^U, ^W, etc. and the behavior is a bit unpredictable (I realized that it's partially working when I used ^D to exit...). Movement doesn't work (^A, for example), but destructive movement (^W) does. Pretty sure that means it's a bash thing.

mojodna avatar Dec 22 '11 17:12 mojodna