MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / sendCliInput

Function sendCliInput

cli/src/__tests__/rerender-perf.integration.test.ts:86–94  ·  view source on GitHub ↗

* Send input to the CLI using bracketed paste mode. * Standard send-keys doesn't work with OpenTUI - see tmux.knowledge.md

(sessionName: string, text: string)

Source from the content-addressed store, hash-verified

84 * Standard send-keys doesn't work with OpenTUI - see tmux.knowledge.md
85 */
86async function sendCliInput(sessionName: string, text: string): Promise<void> {
87 await tmux([
88 'send-keys',
89 '-t',
90 sessionName,
91 '-l',
92 `\x1b[200~${text}\x1b[201~`,
93 ])
94}
95
96describe.skipIf(!tmuxAvailable || !sdkBuilt)(
97 'Re-render Performance Tests',

Calls 1

tmuxFunction · 0.70

Tested by

no test coverage detected