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

Function createTerminal

packages/app/src/addons/serialize.test.ts:20–31  ·  view source on GitHub ↗
(cols = 80, rows = 24)

Source from the content-addressed store, hash-verified

18})
19
20function createTerminal(cols = 80, rows = 24): { term: Terminal; addon: SerializeAddon; container: HTMLElement } {
21 const container = document.createElement("div")
22 document.body.appendChild(container)
23
24 const term = new Terminal({ cols, rows, ghostty })
25 const addon = new SerializeAddon()
26 term.loadAddon(addon)
27 term.open(container)
28 terminals.push(term)
29
30 return { term, addon, container }
31}
32
33function writeAndWait(term: Terminal, data: string): Promise<void> {
34 return new Promise((resolve) => {

Callers 1

serialize.test.tsFile · 0.85

Calls 2

openMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected