Archived
1
0

Fix incorrect options to node-pty

This commit is contained in:
Asher 2019-02-19 16:46:42 -06:00
parent ed50c64a77
commit 33c2d451c4
No known key found for this signature in database
GPG Key ID: 7BB4BA9C783D2BBC

View File

@ -53,12 +53,6 @@ class Pty implements nodePty.IPty {
setTimeout(() => ptyProc.kill("SIGKILL"), 5000); // Double tap. setTimeout(() => ptyProc.kill("SIGKILL"), 5000); // Double tap.
}, },
}; };
}, file, Array.isArray(args) ? args : [args], {
...options,
tty: {
columns: options.cols || 100,
rows: options.rows || 100,
},
}, file, args, options); }, file, args, options);
this.ae.on("pid", (pid) => this._pid = pid); this.ae.on("pid", (pid) => this._pid = pid);