update onCursorMove to match changes in xterm

This commit is contained in:
Labhansh Agrawal 2020-02-12 14:18:59 +05:30 committed by Benjamin Staneck
parent 76f4246d6e
commit 64249f389d

View file

@ -190,12 +190,12 @@ export default class Term extends React.PureComponent {
this.disposableListeners.push( this.disposableListeners.push(
this.term.onCursorMove(() => { this.term.onCursorMove(() => {
const cursorFrame = { const cursorFrame = {
x: this.term._core.buffer.x * this.term._core.renderer.dimensions.actualCellWidth, x: this.term.buffer.cursorX * this.term._core._renderService.dimensions.actualCellWidth,
y: this.term._core.buffer.y * this.term._core.renderer.dimensions.actualCellHeight, y: this.term.buffer.cursorY * this.term._core._renderService.dimensions.actualCellHeight,
width: this.term._core.renderer.dimensions.actualCellWidth, width: this.term._core._renderService.dimensions.actualCellWidth,
height: this.term._core.renderer.dimensions.actualCellHeight, height: this.term._core._renderService.dimensions.actualCellHeight,
col: this.term._core.buffer.x, col: this.term.buffer.cursorX,
row: this.term._core.buffer.y row: this.term.buffer.cursorY
}; };
props.onCursorMove(cursorFrame); props.onCursorMove(cursorFrame);
}) })