mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
don't resize dead PTYs
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user