mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
parent
5f56514aa2
commit
6fc24376a2
1 changed files with 6 additions and 6 deletions
|
|
@ -124,12 +124,12 @@ export default class Term extends React.PureComponent {
|
|||
this.disposableListeners.push(
|
||||
this.term.addDisposableListener('cursormove', () => {
|
||||
const cursorFrame = {
|
||||
x: this.term.buffer.x * this.term.renderer.dimensions.actualCellWidth,
|
||||
y: this.term.buffer.y * this.term.renderer.dimensions.actualCellHeight,
|
||||
width: this.term.renderer.dimensions.actualCellWidth,
|
||||
height: this.term.renderer.dimensions.actualCellHeight,
|
||||
col: this.term.buffer.y,
|
||||
row: this.term.buffer.x
|
||||
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.y,
|
||||
row: this.term._core.buffer.x
|
||||
};
|
||||
props.onCursorMove(cursorFrame);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue