(url: string)
| 410 | } |
| 411 | |
| 412 | function osc8Id(url: string): string { |
| 413 | let h = 0 |
| 414 | for (let i = 0; i < url.length; i++) |
| 415 | h = ((h << 5) - h + url.charCodeAt(i)) | 0 |
| 416 | return (h >>> 0).toString(36) |
| 417 | } |
| 418 | |
| 419 | /** End a hyperlink (OSC 8) */ |
| 420 | export const LINK_END = osc(OSC.HYPERLINK, '', '') |