MCPcopy Create free account
hub / github.com/Noumena-Network/code / wrapWithOsc8Link

Function wrapWithOsc8Link

src/ink/render-node-to-output.ts:187–189  ·  view source on GitHub ↗
(text: string, url: string)

Source from the content-addressed store, hash-verified

185const BEL = '\u0007'
186
187function wrapWithOsc8Link(text: string, url: string): string {
188 return `${OSC}8;;${url}${BEL}${text}${OSC}8;;${BEL}`
189}
190
191/**
192 * Build a mapping from each character position in the plain text to its segment index.

Callers 2

applyStylesToWrappedTextFunction · 0.70
renderNodeToOutputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected