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

Method _reportWindowsOptions

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

Source from the content-addressed store, hash-verified

773 ((_a = this.element) == null ? void 0 : _a.classList.contains("focus")) ? this.coreService.triggerDataEvent(D.C0.ESC + "[I") : this.coreService.triggerDataEvent(D.C0.ESC + "[O");
774 }
775 _reportWindowsOptions(e3) {
776 if (this._renderService) switch (e3) {
777 case T.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:
778 const e4 = this._renderService.dimensions.css.canvas.width.toFixed(0), t3 = this._renderService.dimensions.css.canvas.height.toFixed(0);
779 this.coreService.triggerDataEvent(`${D.C0.ESC}[4;${t3};${e4}t`);
780 break;
781 case T.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:
782 const i3 = this._renderService.dimensions.css.cell.width.toFixed(0), s3 = this._renderService.dimensions.css.cell.height.toFixed(0);
783 this.coreService.triggerDataEvent(`${D.C0.ESC}[6;${s3};${i3}t`);
784 }
785 }
786 cancel(e3, t3) {
787 if (this.options.cancelEvents || t3) return e3.preventDefault(), e3.stopPropagation(), false;
788 }

Callers 1

constructorMethod · 0.95

Calls 1

triggerDataEventMethod · 0.80

Tested by

no test coverage detected