jda258 / flutter_ssh2

SSH and SFTP client for Flutter
https://pub.dartlang.org/packages/ssh
MIT License
15 stars 8 forks source link

Shell responses using xterm differ between iOS and Android #4

Open jda258 opened 3 years ago

jda258 commented 3 years ago

In iOS I get a response like this: \^[]0;pi@raspberrypi: ~\^G\^[[01;32mpi@raspberrypi\^[[00m:\^[[01;34<…>

In Android I see this: �]0;pi@raspberrypi: ~��[01;32mpi@raspberrypi�[00m:�[01;34m~ $�[00m �ll

It looks like the encoded characters in Android are not being converted to strings properly.

nevishs commented 3 years ago

Or would be better to remove all the strange chars or format them in the proper way ....

jda258 commented 3 years ago

@nevishs those strange characters are xterm control sequences.