MCPcopy
hub / github.com/claude-code-best/claude-code / emptyFrame

Function emptyFrame

packages/@ant/ink/src/core/frame.ts:22–34  ·  view source on GitHub ↗
(
  rows: number,
  columns: number,
  stylePool: StylePool,
  charPool: CharPool,
  hyperlinkPool: HyperlinkPool,
)

Source from the content-addressed store, hash-verified

20}
21
22export function emptyFrame(
23 rows: number,
24 columns: number,
25 stylePool: StylePool,
26 charPool: CharPool,
27 hyperlinkPool: HyperlinkPool,
28): Frame {
29 return {
30 screen: createScreen(0, 0, stylePool, charPool, hyperlinkPool),
31 viewport: { width: columns, height: rows },
32 cursor: { x: 0, y: 0, visible: true },
33 }
34}
35
36export type FlickerReason = 'resize' | 'offscreen' | 'clear'
37

Callers 4

constructorMethod · 0.85
InkClass · 0.85
repaintMethod · 0.85
resetLineCountMethod · 0.85

Calls 1

createScreenFunction · 0.85

Tested by

no test coverage detected