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

Function parseCSIParams

src/ink/termio/parser.ts:127–130  ·  view source on GitHub ↗
(paramStr: string)

Source from the content-addressed store, hash-verified

125// =============================================================================
126
127function parseCSIParams(paramStr: string): number[] {
128 if (paramStr === '') return []
129 return paramStr.split(/[;:]/).map(s => (s === '' ? 0 : parseInt(s, 10)))
130}
131
132/** Parse a raw CSI sequence (e.g., "\x1b[31m") into an action */
133function parseCSI(rawSequence: string): Action | null {

Callers 1

parseCSIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected