mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
update onCursorMove to match changes in xterm
This commit is contained in:
parent
76f4246d6e
commit
64249f389d
1 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue