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

Method reset

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

Source from the content-addressed store, hash-verified

4295 super(), this._optionsService = e3, this._bufferService = t3, this._onBufferActivate = this.register(new s2.EventEmitter()), this.onBufferActivate = this._onBufferActivate.event, this.reset(), this.register(this._optionsService.onSpecificOptionChange("scrollback", (() => this.resize(this._bufferService.cols, this._bufferService.rows)))), this.register(this._optionsService.onSpecificOptionChange("tabStopWidth", (() => this.setupTabStops())));
4296 }
4297 reset() {
4298 this._normal = new n.Buffer(true, this._optionsService, this._bufferService), this._normal.fillViewportRows(), this._alt = new n.Buffer(false, this._optionsService, this._bufferService), this._activeBuffer = this._normal, this._onBufferActivate.fire({ activeBuffer: this._normal, inactiveBuffer: this._alt }), this.setupTabStops();
4299 }
4300 get alt() {
4301 return this._alt;
4302 }

Callers 1

constructorMethod · 0.95

Calls 3

setupTabStopsMethod · 0.95
fillViewportRowsMethod · 0.80
fireMethod · 0.80

Tested by

no test coverage detected