소스 검색

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

stalin 4 년 전
부모
커밋
eae35146cb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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');