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

Function readScreenRows

src/ink/output.test.ts:31–35  ·  view source on GitHub ↗
(screen: ReturnType<typeof createScreen>)

Source from the content-addressed store, hash-verified

29}
30
31function readScreenRows(screen: ReturnType<typeof createScreen>): string[] {
32 return Array.from({ length: screen.height }, (_, y) =>
33 Array.from({ length: screen.width }, (_, x) => charInCellAt(screen, x, y) ?? ' ').join(''),
34 )
35}
36
37describe('Output shared char cache', () => {
38 it('reuses clustered line cache across Output instances that share a StylePool', () => {

Callers 1

output.test.tsFile · 0.85

Calls 1

charInCellAtFunction · 0.85

Tested by

no test coverage detected