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

Method fit

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

Source from the content-addressed store, hash-verified

6169 activate(e2) {
6170 this._terminal = e2;
6171 }
6172 dispose() {
6173 }
6174 fit() {
6175 const e2 = this.proposeDimensions();
6176 if (!e2 || !this._terminal || isNaN(e2.cols) || isNaN(e2.rows)) return;
6177 const t2 = this._terminal._core;
6178 this._terminal.rows === e2.rows && this._terminal.cols === e2.cols || (t2._renderService.clear(), this._terminal.resize(e2.cols, e2.rows));
6179 }

Callers 6

initTerminalFunction · 0.80
connectFunction · 0.80
setupBarToggleFunction · 0.80
initTerminalFunction · 0.80
connectFunction · 0.80
setupBarToggleFunction · 0.80

Calls 3

proposeDimensionsMethod · 0.80
clearMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected