MCPcopy Create free account
hub / github.com/arctic-cli/interface / hyperlink

Function hyperlink

packages/arctic/src/cli/ui.ts:40–44  ·  view source on GitHub ↗
(url: string, text?: string)

Source from the content-addressed store, hash-verified

38 * @returns The formatted hyperlink
39 */
40 export function hyperlink(url: string, text?: string): string {
41 const displayText = text || url
42 // OSC 8 format: \x1b]8;;URL\x07TEXT\x1b]8;;\x07
43 return `\x1b]8;;${url}\x07${displayText}\x1b]8;;\x07`
44 }
45
46 export function println(...message: string[]) {
47 print(...message)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected