MCPcopy
hub / github.com/codeaashu/claude-code / _setCursor

Method _setCursor

src/server/web/public/terminal.js:2867–2869  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

2865 this._activeBuffer.x = Math.min(e3, Math.max(0, this._activeBuffer.x)), this._activeBuffer.y = this._coreService.decPrivateModes.origin ? Math.min(this._activeBuffer.scrollBottom, Math.max(this._activeBuffer.scrollTop, this._activeBuffer.y)) : Math.min(this._bufferService.rows - 1, Math.max(0, this._activeBuffer.y)), this._dirtyRowTracker.markDirty(this._activeBuffer.y);
2866 }
2867 _setCursor(e3, t3) {
2868 this._dirtyRowTracker.markDirty(this._activeBuffer.y), this._coreService.decPrivateModes.origin ? (this._activeBuffer.x = e3, this._activeBuffer.y = this._activeBuffer.scrollTop + t3) : (this._activeBuffer.x = e3, this._activeBuffer.y = t3), this._restrictCursor(), this._dirtyRowTracker.markDirty(this._activeBuffer.y);
2869 }
2870 _moveCursor(e3, t3) {
2871 this._restrictCursor(), this._setCursor(this._activeBuffer.x + e3, this._activeBuffer.y + t3);
2872 }

Callers 9

_moveCursorMethod · 0.95
cursorCharAbsoluteMethod · 0.95
cursorPositionMethod · 0.95
charPosAbsoluteMethod · 0.95
linePosAbsoluteMethod · 0.95
setModePrivateMethod · 0.95
resetModePrivateMethod · 0.95
setScrollRegionMethod · 0.95

Calls 2

_restrictCursorMethod · 0.95
markDirtyMethod · 0.45

Tested by

no test coverage detected