Eugene Pankov 6 лет назад
Родитель
Сommit
316b77ec7b

+ 2 - 2
terminus-serial/src/api.ts

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

+ 2 - 2
terminus-ssh/src/api.ts

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

+ 1 - 1
terminus-ssh/src/components/sshTab.component.ts

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