提交 709ffadc 编写于 作者: E Eugene Pankov

don't resize dead PTYs

上级 536d9537
......@@ -68,11 +68,15 @@ export class Session {
}
resize (columns, rows) {
this.pty.resize(columns, rows)
if (this.pty.writable) {
this.pty.resize(columns, rows)
}
}
write (data) {
this.pty.write(Buffer.from(data, 'utf-8'))
if (this.pty.writable) {
this.pty.write(Buffer.from(data, 'utf-8'))
}
}
kill (signal?: string) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册