1
1
mirror of https://github.com/Eugeny/tabby.git synced 2025-01-05 09:34:56 +03:00
This commit is contained in:
Eugene Pankov 2020-03-01 16:33:24 +01:00
parent a4dc6832f3
commit 316b77ec7b
3 changed files with 5 additions and 5 deletions

View File

@ -105,9 +105,9 @@ export class SerialSession extends BaseSession {
this.executeUnconditionalScripts() this.executeUnconditionalScripts()
} }
write (data: string): void { write (data: Buffer): void {
if (this.serial) { if (this.serial) {
this.serial.write(data) this.serial.write(data.toString())
} }
} }

View File

@ -288,9 +288,9 @@ export class SSHSession extends BaseSession {
} }
} }
write (data: string): void { write (data: Buffer): void {
if (this.shell) { if (this.shell) {
this.shell.write(data) this.shell.write(data.toString())
} }
} }

View File

@ -58,7 +58,7 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
}) })
} }
async initializeSession (): void { async initializeSession (): Promise<void> {
if (!this.connection) { if (!this.connection) {
this.logger.error('No SSH connection info supplied') this.logger.error('No SSH connection info supplied')
return return