Table of Contents

Method OnDrawingText

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Draws the link text with OSC 8 hyperlink sequences when the URL is valid.

protected override bool OnDrawingText(DrawContext? context)

Parameters

context DrawContext

The draw context for tracking drawn regions.

Returns

bool

true — drawing is always handled by Link.

If Text is empty, Url is drawn; otherwise Text is drawn. The displayed text is determined by UpdateTextFormatterText().

If Url is a well-formed absolute URI, the driver's CurrentUrl is set so that all drawn cells carry the URL (enabling OSC 8 hyperlink output in supporting terminals). If the URL is not well-formed, the text is rendered with the Disabled style and no hyperlink sequence is emitted.