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

Function findPromptRow

src/testing/replScreenContractHarness.ts:33–41  ·  view source on GitHub ↗
(screenText: string)

Source from the content-addressed store, hash-verified

31}
32
33export function findPromptRow(screenText: string): number {
34 const rows = screenText.split('\n')
35 for (let rowIndex = rows.length - 1; rowIndex >= 0; rowIndex -= 1) {
36 if (rows[rowIndex]?.includes('❯')) {
37 return rowIndex
38 }
39 }
40 return -1
41}
42
43export function readPromptBand(
44 screenText: string,

Callers 3

readPromptBandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected