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

Method write

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

Source from the content-addressed store, hash-verified

4674 const e4 = this._callbacks.shift();
4675 e4 && e4();
4676 }
4677 this._pendingData = 0, this._bufferOffset = 2147483647, this._isSyncWriting = false, this._syncCalls = 0;
4678 }
4679 write(e3, t3) {
4680 if (this._pendingData > 5e7) throw new Error("write data discarded, use flow control to avoid losing data");
4681 if (!this._writeBuffer.length) {
4682 if (this._bufferOffset = 0, this._didUserInput) return this._didUserInput = false, this._pendingData += e3.length, this._writeBuffer.push(e3), this._callbacks.push(t3), void this._innerWrite();
4683 setTimeout((() => this._innerWrite()));
4684 }
4685 this._pendingData += e3.length, this._writeBuffer.push(e3), this._callbacks.push(t3);
4686 }

Callers

nothing calls this directly

Calls 2

_innerWriteMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected