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

Method _syncTextArea

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

Source from the content-addressed store, hash-verified

532 this.textarea.value = "", this.refresh(this.buffer.y, this.buffer.y), this.coreService.decPrivateModes.sendFocus && this.coreService.triggerDataEvent(D.C0.ESC + "[O"), this.element.classList.remove("focus"), this._onBlur.fire();
533 }
534 _syncTextArea() {
535 if (!this.textarea || !this.buffer.isCursorInViewport || this._compositionHelper.isComposing || !this._renderService) return;
536 const e3 = this.buffer.ybase + this.buffer.y, t3 = this.buffer.lines.get(e3);
537 if (!t3) return;
538 const i3 = Math.min(this.buffer.x, this.cols - 1), s3 = this._renderService.dimensions.css.cell.height, r2 = t3.getWidth(i3), n2 = this._renderService.dimensions.css.cell.width * r2, o2 = this.buffer.y * this._renderService.dimensions.css.cell.height, a2 = i3 * this._renderService.dimensions.css.cell.width;
539 this.textarea.style.left = a2 + "px", this.textarea.style.top = o2 + "px", this.textarea.style.width = n2 + "px", this.textarea.style.height = s3 + "px", this.textarea.style.lineHeight = s3 + "px", this.textarea.style.zIndex = "-5";
540 }
541 _initGlobal() {
542 this._bindKeys(), this.register((0, r.addDisposableDomListener)(this.element, "copy", ((e4) => {
543 this.hasSelection() && (0, s2.copyHandler)(e4, this._selectionService);

Callers 1

openMethod · 0.95

Calls 2

getMethod · 0.65
getWidthMethod · 0.45

Tested by

no test coverage detected