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

Method registerCsiHandler

src/server/web/public/terminal.js:4900–4908  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

4898 this._executeHandlers[e3.charCodeAt(0)] && delete this._executeHandlers[e3.charCodeAt(0)];
4899 }
4900 setExecuteHandlerFallback(e3) {
4901 this._executeHandlerFb = e3;
4902 }
4903 registerCsiHandler(e3, t3) {
4904 const i3 = this._identifier(e3);
4905 void 0 === this._csiHandlers[i3] && (this._csiHandlers[i3] = []);
4906 const s3 = this._csiHandlers[i3];
4907 return s3.push(t3), { dispose: () => {
4908 const e4 = s3.indexOf(t3);
4909 -1 !== e4 && s3.splice(e4, 1);
4910 } };
4911 }

Callers

nothing calls this directly

Calls 3

_identifierMethod · 0.95
spliceMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected