Skip to content

Commit

Permalink
Merge pull request #1952 from NickShaffner/master
Browse files Browse the repository at this point in the history
Fix for issue #812: Xterm.js's encoding of mouse coordinate
  • Loading branch information
Tyriar committed Mar 8, 2019
2 parents 4046d68 + 127a2ca commit 7e1b5cc
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -861,17 +861,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);
}
}

Expand Down

0 comments on commit 7e1b5cc

Please sign in to comment.