MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getActiveTerminalComponent

Function getActiveTerminalComponent

src/handlers/quickTools.js:675–679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

673}
674
675function getActiveTerminalComponent() {
676 const { activeFile } = editorManager;
677 if (activeFile?.type !== "terminal") return null;
678 return activeFile.terminalComponent || null;
679}
680
681function getActiveTerminalInput() {
682 return getActiveTerminalComponent()?.terminal?.textarea || null;

Callers 2

getActiveTerminalInputFunction · 0.85
insertTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected