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

Method cursorUp

src/server/web/public/terminal.js:2873–2876  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

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;
2876 }
2877 cursorDown(e3) {
2878 const t3 = this._activeBuffer.scrollBottom - this._activeBuffer.y;
2879 return t3 >= 0 ? this._moveCursor(0, Math.min(t3, e3.params[0] || 1)) : this._moveCursor(0, e3.params[0] || 1), true;

Callers 2

constructorMethod · 0.95
cursorPrecedingLineMethod · 0.95

Calls 1

_moveCursorMethod · 0.95

Tested by

no test coverage detected