mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
parent
17bfdbd552
commit
bbd14bca09
3 changed files with 7 additions and 7 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue