From 64249f389db9638d7fc145c6810f31ab011ff6f5 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Wed, 12 Feb 2020 14:18:59 +0530 Subject: [PATCH] update onCursorMove to match changes in xterm --- lib/components/term.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/components/term.js b/lib/components/term.js index f281bd8e..0aa8844e 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -190,12 +190,12 @@ export default class Term extends React.PureComponent { this.disposableListeners.push( this.term.onCursorMove(() => { const cursorFrame = { - x: this.term._core.buffer.x * this.term._core.renderer.dimensions.actualCellWidth, - y: this.term._core.buffer.y * this.term._core.renderer.dimensions.actualCellHeight, - width: this.term._core.renderer.dimensions.actualCellWidth, - height: this.term._core.renderer.dimensions.actualCellHeight, - col: this.term._core.buffer.x, - row: this.term._core.buffer.y + x: this.term.buffer.cursorX * this.term._core._renderService.dimensions.actualCellWidth, + y: this.term.buffer.cursorY * this.term._core._renderService.dimensions.actualCellHeight, + width: this.term._core._renderService.dimensions.actualCellWidth, + height: this.term._core._renderService.dimensions.actualCellHeight, + col: this.term.buffer.cursorX, + row: this.term.buffer.cursorY }; props.onCursorMove(cursorFrame); })