Fixed SSH with xterm.js (#4668)

This commit is contained in:
Ylian Saint-Hilaire
2022-10-25 09:58:04 -07:00
parent 2981217a2e
commit 909f9f862e
2 changed files with 7 additions and 7 deletions

View File

@@ -10190,7 +10190,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)); }
}
}
}