MCPcopy Create free account
hub / github.com/codeaashu/claude-code / saveCursor

Method saveCursor

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

Source from the content-addressed store, hash-verified

3337 return true;
3338 }
3339 saveCursor(e3) {
3340 return this._activeBuffer.savedX = this._activeBuffer.x, this._activeBuffer.savedY = this._activeBuffer.ybase + this._activeBuffer.y, this._activeBuffer.savedCurAttrData.fg = this._curAttrData.fg, this._activeBuffer.savedCurAttrData.bg = this._curAttrData.bg, this._activeBuffer.savedCharset = this._charsetService.charset, true;
3341 }
3342 restoreCursor(e3) {
3343 return this._activeBuffer.x = this._activeBuffer.savedX || 0, this._activeBuffer.y = Math.max(this._activeBuffer.savedY - this._activeBuffer.ybase, 0), this._curAttrData.fg = this._activeBuffer.savedCurAttrData.fg, this._curAttrData.bg = this._activeBuffer.savedCurAttrData.bg, this._charsetService.charset = this._savedCharset, this._activeBuffer.savedCharset && (this._charsetService.charset = this._activeBuffer.savedCharset), this._restrictCursor(), true;
3344 }

Callers 2

constructorMethod · 0.95
setModePrivateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected