Merge pull request #5282 from si458/fix-mobile-ssh-utf8

fix mobile ssh utf8
This commit is contained in:
Ylian Saint-Hilaire 2023-08-14 19:58:35 -07:00 committed by GitHub
commit bd26ec32cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4932,7 +4932,9 @@
case 'sessionerror': { p12setConsoleMsg("Session expired", 5000); break; }
case 'sessiontimeout': { p12setConsoleMsg("Session timeout", 5000); break; }
}
} else if (data[0] == '~') { xterm.writeUtf8(data.substring(1)); }
} else if (data[0] == '~') {
if (xterm.writeUtf8) { xterm.writeUtf8(data.substring(1)); } else { xterm.write(data.substring(1)); }
}
}
}