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

Method setScrollRegion

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

Source from the content-addressed store, hash-verified

3311 return this._optionsService.options.cursorBlink = i3, true;
3312 }
3313 setScrollRegion(e3) {
3314 const t3 = e3.params[0] || 1;
3315 let i3;
3316 return (e3.length < 2 || (i3 = e3.params[1]) > this._bufferService.rows || 0 === i3) && (i3 = this._bufferService.rows), i3 > t3 && (this._activeBuffer.scrollTop = t3 - 1, this._activeBuffer.scrollBottom = i3 - 1, this._setCursor(0, 0)), true;
3317 }
3318 windowOptions(e3) {
3319 if (!w(e3.params[0], this._optionsService.rawOptions.windowOptions)) return true;
3320 const t3 = e3.length > 1 ? e3.params[1] : 0;

Callers 1

constructorMethod · 0.95

Calls 1

_setCursorMethod · 0.95

Tested by

no test coverage detected