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

Function charInCellAt

src/ink/screen.ts:893–902  ·  view source on GitHub ↗
(
  screen: Screen,
  x: number,
  y: number,
)

Source from the content-addressed store, hash-verified

891}
892
893export function charInCellAt(
894 screen: Screen,
895 x: number,
896 y: number,
897): string | undefined {
898 if (x < 0 || y < 0 || x >= screen.width || y >= screen.height)
899 return undefined
900 const ci = (y * screen.width + x) << 1
901 return screen.charPool.get(screen.cells[ci]!)
902}
903/**
904 * Set a cell, optionally creating a spacer for wide characters.
905 *

Callers 2

readScreenRowsFunction · 0.85
output.test.tsFile · 0.85

Calls 1

getMethod · 0.45

Tested by 1

readScreenRowsFunction · 0.68