mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-16 08:58:07 -04:00
Merge pull request #4809 from gary-kim/fix/noid/xterm-write
Fix xterm in shared terminals
This commit is contained in:
commit
f85f6f29d3
@ -1670,7 +1670,13 @@
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
function tunnelUpdate(data) { if (typeof data == 'string') { xterm.writeUtf8(data); } else { xterm.writeUtf8(new Uint8Array(data)); } }
|
function tunnelUpdate(data) {
|
||||||
|
if (xterm.writeUtf8) {
|
||||||
|
if (typeof data == 'string') { xterm.writeUtf8(data); } else { xterm.writeUtf8(new Uint8Array(data)); }
|
||||||
|
} else {
|
||||||
|
if (typeof data == 'string') { xterm.write(data); } else { xterm.write(new Uint8Array(data)); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function sshTunnelUpdate(data) {
|
function sshTunnelUpdate(data) {
|
||||||
if (typeof data == 'string') {
|
if (typeof data == 'string') {
|
||||||
|
@ -1405,7 +1405,13 @@
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
function tunnelUpdate(data) { if (typeof data == 'string') { xterm.writeUtf8(data); } else { xterm.writeUtf8(new Uint8Array(data)); } }
|
function tunnelUpdate(data) {
|
||||||
|
if (xterm.writeUtf8) {
|
||||||
|
if (typeof data == 'string') { xterm.writeUtf8(data); } else { xterm.writeUtf8(new Uint8Array(data)); }
|
||||||
|
} else {
|
||||||
|
if (typeof data == 'string') { xterm.write(data); } else { xterm.write(new Uint8Array(data)); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Send the new terminal size to the agent
|
// Send the new terminal size to the agent
|
||||||
function xTermSendResize() {
|
function xTermSendResize() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user