MCPcopy
hub / github.com/xtermjs/xterm.js / triggerDataEvent

Method triggerDataEvent

src/common/services/Services.ts:104–104  ·  view source on GitHub ↗

* Triggers the onData event in the public API. * @param data The data that is being emitted. * @param wasUserInput Whether the data originated from the user (as opposed to * resulting from parsing incoming data). When true this will also: * - Scroll to the bottom of the buffer if option

(data: string, wasUserInput?: boolean)

Source from the content-addressed store, hash-verified

102 * - Fire the `onUserInput` event (so selection can be cleared).
103 */
104 triggerDataEvent(data: string, wasUserInput?: boolean): void;
105
106 /**
107 * Triggers the onBinary event in the public API.

Callers 15

pasteFunction · 0.65
_handleColorEventMethod · 0.65
_handleTextAreaFocusMethod · 0.65
_handleTextAreaBlurMethod · 0.65
bindMouseMethod · 0.65
_keyDownMethod · 0.65
_keyPressMethod · 0.65
_inputEventMethod · 0.65
_reportFocusMethod · 0.65
_reportWindowsOptionsMethod · 0.65
Terminal.test.tsFile · 0.65
_handleMouseUpMethod · 0.65

Implementers 2

MockCoreServicesrc/common/TestUtils.test.ts
CoreServicesrc/common/services/CoreService.ts

Calls

no outgoing calls

Tested by

no test coverage detected