MCPcopy
hub / github.com/anomalyco/opencode / push

Function push

packages/opencode/src/cli/cmd/run/splash.ts:132–142  ·  view source on GitHub ↗
(
  lines: Array<{ left: number; top: number; text: string; fg: ColorInput; bg?: ColorInput; attrs?: number }>,
  left: number,
  top: number,
  text: string,
  fg: ColorInput,
  bg?: ColorInput,
  attrs?: number,
)

Source from the content-addressed store, hash-verified

130}
131
132function push(
133 lines: Array<{ left: number; top: number; text: string; fg: ColorInput; bg?: ColorInput; attrs?: number }>,
134 left: number,
135 top: number,
136 text: string,
137 fg: ColorInput,
138 bg?: ColorInput,
139 attrs?: number,
140): void {
141 lines.push({ left, top, text, fg, bg, attrs })
142}
143
144function draw(
145 lines: Array<{ left: number; top: number; text: string; fg: ColorInput; bg?: ColorInput; attrs?: number }>,

Callers 2

drawFunction · 0.70
buildFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected