provide for better compatibility with attach.js

This commit is contained in:
Felipe Gasper
2017-10-27 20:14:18 -05:00
parent a90493a9af
commit 6c3af6e19a
3 changed files with 43 additions and 10 deletions
+3 -1
View File
@@ -112,7 +112,9 @@ function createTerminal() {
socket.onclose = runFakeTerminal;
socket.onerror = runFakeTerminal;
term.zmodemAttach(socket);
term.zmodemAttach(socket, {
noTerminalWriteOutsideSession: true,
} );
term.on("zmodemDetect", (detection) => {
term.detach();