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

Function rowsToStrings

src/ink/renderTrace.ts:80–90  ·  view source on GitHub ↗
(screen: Screen)

Source from the content-addressed store, hash-verified

78}
79
80function rowsToStrings(screen: Screen): string[] {
81 const rows: string[] = []
82 for (let y = 0; y < screen.height; y++) {
83 let row = ''
84 for (let x = 0; x < screen.width; x++) {
85 row += cellAt(screen, x, y)?.char ?? ' '
86 }
87 rows.push(row)
88 }
89 return rows
90}
91
92function snapshotFrame(frame: Frame): FrameSnapshot {
93 return {

Callers 1

captureMethod · 0.85

Calls 1

cellAtFunction · 0.85

Tested by

no test coverage detected