MCPcopy Index your code
hub / github.com/codeaashu/claude-code / parseCSIParams

Function parseCSIParams

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

Source from the content-addressed store, hash-verified

79// =============================================================================
80
81function parseCSIParams(paramStr: string): number[] {
82 if (paramStr === '') return []
83 return paramStr.split(/[;:]/).map(s => (s === '' ? 0 : parseInt(s, 10)))
84}
85
86/** Parse a raw CSI sequence (e.g., "\x1b[31m") into an action */
87function parseCSI(rawSequence: string): Action | null {

Callers 1

parseCSIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected