* Set absolute cursor position.
(x: number, y: number)
| 870 | * Set absolute cursor position. |
| 871 | */ |
| 872 | private _setCursor(x: number, y: number): void { |
| 873 | this._dirtyRowTracker.markDirty(this._activeBuffer.y); |
| 874 | if (this._coreService.decPrivateModes.origin) { |
| 875 | this._activeBuffer.x = x; |
| 876 | this._activeBuffer.y = this._activeBuffer.scrollTop + y; |
| 877 | } else { |
| 878 | this._activeBuffer.x = x; |
| 879 | this._activeBuffer.y = y; |
| 880 | } |
| 881 | this._restrictCursor(); |
| 882 | this._dirtyRowTracker.markDirty(this._activeBuffer.y); |
| 883 | } |
| 884 | |
| 885 | /** |
| 886 | * Set relative cursor position. |
no test coverage detected