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

Function normalizePtyVisibleText

src/testing/ptyContractHarness.ts:111–119  ·  view source on GitHub ↗
(rawText: string)

Source from the content-addressed store, hash-verified

109}
110
111export function normalizePtyVisibleText(rawText: string): string {
112 return stripAnsi(
113 rawText
114 .replace(DCS_SEQUENCE_RE, '')
115 .replace(OSC_SEQUENCE_RE, '')
116 .replace(PRIVATE_MODE_CSI_RE, '')
117 .replace(CARRIAGE_RETURN_RE, '\n'),
118 )
119}
120
121function resolveScriptBinary(): string | null {
122 const scriptPath = Bun.which('script')

Callers 2

onTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected