Table of Contents

Method OSC_StartHyperlink

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

Starts a hyperlink using OSC 8 escape sequence.

public static string OSC_StartHyperlink(string url, string? id = null)

Parameters

url string

The URL to link to (e.g., "https://github.com").

id string

Optional hyperlink ID for matching start/end pairs. Use null for automatic matching.

Returns

string

The OSC 8 start sequence.

OSC 8 format: ESC ] 8 ; params ; URL ST Supported in Windows Terminal, iTerm2, and other modern terminals. Must be followed by visible text, then terminated with OSC_EndHyperlink().