Skip to content

Commit

Permalink
Remove some unneeded log messages in Term.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sedwards2009 committed Aug 30, 2019
1 parent 2ab92ed commit 074d612
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions extraterm/src/render_process/emulator/Term.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,6 @@ export class Emulator implements EmulatorApi {
const pos: TerminalCoord = { x: pos0based.x + 1, y: pos0based.y + 1 };

if (this.vt300Mouse) {
this.log("sendEvent(): vt300Mouse");
// NOTE: Unstable.
// http://www.vt100.net/docs/vt3xx-gp/chapter15.html
button &= 3;
Expand Down Expand Up @@ -673,22 +672,19 @@ export class Emulator implements EmulatorApi {
}

if (this.urxvtMouse) {
this.log("sendEvent(): urxvtMouse");
const x = pos.x;
const y = pos.y;
this.send('\x1b[' + (button+32) + ';' + x + ';' + y + 'M');
return;
}

if (this.sgrMouse) {
this.log("sendEvent(): sgrMouse");
const x = pos.x;
const y = pos.y;
this.send('\x1b[<' + ((button & 3) === 3 ? button & ~3 : button) + ';' + x +
';' + y + ((button & 3) === 3 ? 'm' : 'M'));
return;
}
this.log("sendEvent(): default");

const encodedData = [];
this.encodeMouseData(encodedData, button+32);
Expand All @@ -700,7 +696,6 @@ export class Emulator implements EmulatorApi {

this.send('\x1b[M' + String.fromCharCode.apply(String, encodedData));
}


// mouseup, mousedown, mousewheel
// left click: ^[[M 3<^[[M#3<
Expand Down

0 comments on commit 074d612

Please sign in to comment.