Parcourir la source

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

stalin il y a 4 ans
Parent
commit
eae35146cb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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');