0

I'm using jquery-terminal plugin to do terminal emulation in text editor.
All it does is send input to the server which inserts the input to the real terminal and returns the result.

However When using Ctrl+D in jquery-terminal it calls exit()
method instead of really inserting ^D.
How can I make it send it as normal input
(would be the best if it'd work for all commands (^C, ^D, ^Z etc)

Krzysztof Wende
  • 3,208
  • 25
  • 38
  • You can set keydown event as option and return false for those keys and insert ^D instead of run exit. – jcubic Mar 07 '15 at 13:18

1 Answers1

0

Inserting escaped Unicode sequence (\04) did the trick

Krzysztof Wende
  • 3,208
  • 25
  • 38