(rawText: string)
| 109 | } |
| 110 | |
| 111 | export 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 | |
| 121 | function resolveScriptBinary(): string | null { |
| 122 | const scriptPath = Bun.which('script') |
no outgoing calls
no test coverage detected