(...parts: (string | number)[])
| 42 | /** Generate an OSC sequence: ESC ] p1;p2;...;pN <terminator> |
| 43 | * Uses ST terminator for Kitty (avoids beeps), BEL for others */ |
| 44 | export function osc(...parts: (string | number)[]): string { |
| 45 | const terminator = process.env.TERM_PROGRAM === 'kitty' ? ST : BEL |
| 46 | return `${OSC_PREFIX}${parts.join(SEP)}${terminator}` |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Wrap an escape sequence for terminal multiplexer passthrough. |
no outgoing calls
no test coverage detected