Explorar el Código

change interface of ssh.dart example to satisfied new dartssh.

stalin hace 4 años
padre
commit
eae35146cb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      example/lib/ssh.dart

+ 1 - 1
example/lib/ssh.dart

@@ -69,7 +69,7 @@ class SSHTerminalBackend extends TerminalBackend {
       termvar: 'xterm-256color',
       getPassword: () => utf8.encode(_password),
       response: (transport, data) {
-        onWrite(data);
+        onWrite(utf8.decode(data, allowMalformed: true));
       },
       success: () {
         onWrite('connected.\n');