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

Method reset

src/server/web/public/terminal.js:836–838  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

834 this._viewportElement.style.backgroundColor = e3.background.css;
835 }
836 reset() {
837 this._currentRowHeight = 0, this._currentDeviceCellHeight = 0, this._lastRecordedBufferLength = 0, this._lastRecordedViewportHeight = 0, this._lastRecordedBufferHeight = 0, this._lastTouchY = 0, this._lastScrollTop = 0, this._coreBrowserService.window.requestAnimationFrame((() => this.syncScrollArea()));
838 }
839 _refresh(e3) {
840 if (e3) return this._innerRefresh(), void (null !== this._refreshAnimationFrame && this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));
841 null === this._refreshAnimationFrame && (this._refreshAnimationFrame = this._coreBrowserService.window.requestAnimationFrame((() => this._innerRefresh())));

Callers

nothing calls this directly

Calls 5

syncScrollAreaMethod · 0.80
unhookMethod · 0.80
resetMethod · 0.65
clearSelectionMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected