Explorar o código

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

stalin %!s(int64=4) %!d(string=hai) anos
pai
achega
eae35146cb
Modificáronse 1 ficheiros con 1 adicións e 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');