Krzysztof Wende
Krzysztof Wende

Reputation: 3247

Jquery-terminal Input Ctrl+D instead of calling exit method

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)

Upvotes: 0

Views: 234

Answers (1)

Krzysztof Wende
Krzysztof Wende

Reputation: 3247

Inserting escaped Unicode sequence (\04) did the trick

Upvotes: 0

Related Questions