fix mobile ssh utf8

This commit is contained in:
Simon Smith 2023-08-13 01:04:49 +01:00 committed by GitHub
parent be5bfddc04
commit c19d2c5dd0
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)); }
}
}
}