(text: string)
| 178 | } |
| 179 | |
| 180 | function tryCopyViaRenderer(text: string): boolean { |
| 181 | if (!registeredRenderer) return false |
| 182 | const copyFn = registeredRenderer.copyToClipboardOSC52 |
| 183 | if (typeof copyFn !== 'function') return false |
| 184 | try { |
| 185 | return Boolean(copyFn.call(registeredRenderer, text)) |
| 186 | } catch { |
| 187 | return false |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | // 32KB is safe for all environments (tmux is the strictest) |
| 192 | const OSC52_MAX_PAYLOAD = 32_000 |
no outgoing calls
no test coverage detected