MCPcopy Index your code
hub / github.com/codeaashu/claude-code / _moveCursor

Method _moveCursor

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

Source from the content-addressed store, hash-verified

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 }
2873 cursorUp(e3) {
2874 const t3 = this._activeBuffer.y - this._activeBuffer.scrollTop;
2875 return t3 >= 0 ? this._moveCursor(0, -Math.min(t3, e3.params[0] || 1)) : this._moveCursor(0, -(e3.params[0] || 1)), true;

Callers 6

cursorUpMethod · 0.95
cursorDownMethod · 0.95
cursorForwardMethod · 0.95
cursorBackwardMethod · 0.95
hPositionRelativeMethod · 0.95
vPositionRelativeMethod · 0.95

Calls 2

_restrictCursorMethod · 0.95
_setCursorMethod · 0.95

Tested by

no test coverage detected