From c19d2c5dd09277d891cab892a00e9812480c1a41 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Sun, 13 Aug 2023 01:04:49 +0100 Subject: [PATCH] fix mobile ssh utf8 --- views/default-mobile.handlebars | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index 6d524a0f..375e60c8 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -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)); } + } } }