Don't apply the 32 delta when in sgr mode - fix #394

This commit is contained in:
bottleofwater 2016-12-09 10:52:09 +01:00 committed by GitHub
parent 60a59be4d3
commit a75bafc4ba

View File

@ -785,7 +785,7 @@ Terminal.prototype.bindMouse = function() {
pos.x -= 32;
pos.y -= 32;
self.send('\x1b[<'
+ ((button & 3) === 3 ? button & ~3 : button)
+ (((button & 3) === 3 ? button & ~3 : button) - 32)
+ ';'
+ pos.x
+ ';'