MCPcopy Create free account
hub / github.com/anomalyco/opencode / writeAndWait

Function writeAndWait

packages/app/src/addons/serialize.test.ts:33–37  ·  view source on GitHub ↗
(term: Terminal, data: string)

Source from the content-addressed store, hash-verified

31}
32
33function writeAndWait(term: Terminal, data: string): Promise<void> {
34 return new Promise((resolve) => {
35 term.write(data, resolve)
36 })
37}
38
39describe("SerializeAddon", () => {
40 describe("ANSI color preservation", () => {

Callers 1

serialize.test.tsFile · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected