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

Method triggerDataEvent

src/server/web/public/terminal.js:5541–5545  ·  view source on GitHub ↗
(e3, t3 = false)

Source from the content-addressed store, hash-verified

5539 super(), this._bufferService = e3, this._logService = t3, this._optionsService = i3, this.isCursorInitialized = false, this.isCursorHidden = false, this._onData = this.register(new o.EventEmitter()), this.onData = this._onData.event, this._onUserInput = this.register(new o.EventEmitter()), this.onUserInput = this._onUserInput.event, this._onBinary = this.register(new o.EventEmitter()), this.onBinary = this._onBinary.event, this._onRequestScrollToBottom = this.register(new o.EventEmitter()), this.onRequestScrollToBottom = this._onRequestScrollToBottom.event, this.modes = (0, n.clone)(c), this.decPrivateModes = (0, n.clone)(l);
5540 }
5541 reset() {
5542 this.modes = (0, n.clone)(c), this.decPrivateModes = (0, n.clone)(l);
5543 }
5544 triggerDataEvent(e3, t3 = false) {
5545 if (this._optionsService.rawOptions.disableStdin) return;
5546 const i3 = this._bufferService.buffer;
5547 t3 && this._optionsService.rawOptions.scrollOnUserInput && i3.ybase !== i3.ydisp && this._onRequestScrollToBottom.fire(), t3 && this._onUserInput.fire(), this._logService.debug(`sending data "${e3}"`, (() => e3.split("").map(((e4) => e4.charCodeAt(0))))), this._onData.fire(e3);
5548 }

Callers 15

rFunction · 0.80
_handleColorEventMethod · 0.80
_handleTextAreaFocusMethod · 0.80
_handleTextAreaBlurMethod · 0.80
bindMouseMethod · 0.80
_keyDownMethod · 0.80
_keyPressMethod · 0.80
_inputEventMethod · 0.80
_reportFocusMethod · 0.80
_reportWindowsOptionsMethod · 0.80
_finalizeCompositionMethod · 0.80

Calls 2

fireMethod · 0.80
debugMethod · 0.45

Tested by

no test coverage detected