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.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);
})