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

Method _enableWindowsWrappingHeuristics

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

Source from the content-addressed store, hash-verified

2634 t3 && void 0 !== t3.buildNumber && void 0 !== t3.buildNumber ? e3 = !!("conpty" === t3.backend && t3.buildNumber < 21376) : this.optionsService.rawOptions.windowsMode && (e3 = true), e3 ? this._enableWindowsWrappingHeuristics() : this._windowsWrappingHeuristics.clear();
2635 }
2636 _enableWindowsWrappingHeuristics() {
2637 if (!this._windowsWrappingHeuristics.value) {
2638 const e3 = [];
2639 e3.push(this.onLineFeed(f.updateWindowsModeWrappedState.bind(null, this._bufferService))), e3.push(this.registerCsiHandler({ final: "H" }, (() => ((0, f.updateWindowsModeWrappedState)(this._bufferService), false)))), this._windowsWrappingHeuristics.value = (0, s2.toDisposable)((() => {
2640 for (const t3 of e3) t3.dispose();
2641 }));
2642 }
2643 }
2644 }
2645 t2.CoreTerminal = S;
2646 }, 8460: (e2, t2) => {

Callers 1

Calls 4

registerCsiHandlerMethod · 0.95
onLineFeedMethod · 0.80
disposeMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected