MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / sendInput

Function sendInput

frontend/src/hooks/useTerminal.ts:305–309  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

303 const ctrlCTimeThreshold = 500;
304
305 function sendInput(data: string) {
306 socket?.emit("stream/write", {
307 data: { input: data }
308 });
309 }
310
311 term.onData((data) => {
312 // If the PTY terminal is disabled, no input is sent.

Callers 1

initTerminalWindowFunction · 0.85

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected