Fix for issue #812: Xterm.js's encoding of mouse coordinate

See: https://github.com/xtermjs/xterm.js/issues/812
Changed the utf-8 mouse encoding to match iTerm
This commit is contained in:
Nick Shaffner
2019-02-27 22:37:22 -08:00
committed by GitHub
parent 6ad6a01c3f
commit e178139907
+3 -8
View File
@@ -854,16 +854,11 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
if (ch > 127) ch = 127;
data.push(ch);
} else {
if (ch === 2047) {
data.push(0);
if (ch > 2047) {
data.push(2047);
return;
}
if (ch < 127) {
data.push(ch);
} else {
if (ch > 2047) ch = 2047;
data.push(0xC0 | (ch >> 6));
data.push(0x80 | (ch & 0x3F));
data.push(ch);
}
}
}