MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildResetScript

Function buildResetScript

src/ink/tmuxResetSequence.test.ts:41–50  ·  view source on GitHub ↗
(sequencePath: string)

Source from the content-addressed store, hash-verified

39})
40
41function buildResetScript(sequencePath: string): string {
42 return (
43 `bash -lc '` +
44 `i=1; ` +
45 `while [ "$i" -le 40 ]; do printf "L%02d\\n" "$i"; i=$((i+1)); done; ` +
46 `cat ${shellQuote(sequencePath)}; ` +
47 `sleep 5` +
48 `'`
49 )
50}
51
52function withTmuxSerializationEnv<T>(fn: () => T): T {
53 const previousTmux = process.env.TMUX

Callers 2

runResetCaptureFunction · 0.85
runRenderedDiffCaptureFunction · 0.85

Calls 1

shellQuoteFunction · 0.50

Tested by

no test coverage detected