diff --git a/app/package.json b/app/package.json index e10f4f51..0c5c665b 100644 --- a/app/package.json +++ b/app/package.json @@ -23,7 +23,7 @@ "mkdirp": "0.5.1", "ms": "0.7.1", "node-fetch": "1.6.3", - "node-pty": "0.4.1", + "node-pty": "0.6.0", "semver": "5.3.0", "shell-env": "0.2.0", "uuid": "3.0.0", diff --git a/app/session.js b/app/session.js index a75c48cd..a6caa734 100644 --- a/app/session.js +++ b/app/session.js @@ -49,7 +49,7 @@ module.exports = class Session extends EventEmitter { } } - this.pty.stdout.on('data', data => { + this.pty.on('data', data => { if (this.ended) { return; } @@ -71,12 +71,12 @@ module.exports = class Session extends EventEmitter { } write(data) { - this.pty.stdin.write(data); + this.pty.write(data); } resize({cols, rows}) { try { - this.pty.stdout.resize(cols, rows); + this.pty.resize(cols, rows); } catch (err) { console.error(err.stack); } diff --git a/app/yarn.lock b/app/yarn.lock index 5997b54e..ce5a2d58 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -267,9 +267,9 @@ node-fetch@1.6.3: encoding "^0.1.11" is-stream "^1.0.1" -node-pty@0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/node-pty/-/node-pty-0.4.1.tgz#a80b35fe57b64f055ab19b2d7aa604d836155c04" +node-pty@0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/node-pty/-/node-pty-0.6.0.tgz#6bb7e58e871b903773595e9ca393c07d077b1ca5" dependencies: extend "~1.2.1" nan "2.2.1"