mirror of
https://github.com/Eugeny/tabby
synced 2024-12-14 23:32:41 +00:00
don't resize dead PTYs
This commit is contained in:
parent
536d9537ff
commit
709ffadc7c
1 changed files with 6 additions and 2 deletions
|
@ -68,12 +68,16 @@ export class Session {
|
||||||
}
|
}
|
||||||
|
|
||||||
resize (columns, rows) {
|
resize (columns, rows) {
|
||||||
|
if (this.pty.writable) {
|
||||||
this.pty.resize(columns, rows)
|
this.pty.resize(columns, rows)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
write (data) {
|
write (data) {
|
||||||
|
if (this.pty.writable) {
|
||||||
this.pty.write(Buffer.from(data, 'utf-8'))
|
this.pty.write(Buffer.from(data, 'utf-8'))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
kill (signal?: string) {
|
kill (signal?: string) {
|
||||||
this.pty.kill(signal)
|
this.pty.kill(signal)
|
||||||
|
|
Loading…
Reference in a new issue