MCPcopy
hub / github.com/Doorman11991/smallcode / splitRows

Function splitRows

test/tui_layout.test.js:12–14  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

10// Fullscreen TUI outputs coordinate positioning (\x1b[row;colH) rather than \n.
11// This splits the absolute escape stream into rows.
12function splitRows(buf) {
13 return buf.split(/\x1b\[\d+;\d+H/).filter(l => l.length > 0);
14}
15
16// Helper to mock stdout dimensions cleanly without boilerplate
17function runWithMockStdout(columns, rows, fn) {

Callers 1

tui_layout.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected