Class
LinkPresenter
ConsoleMonster.Presenters
A URL or filesystem path: clickable (OSC 8) where the terminal profile permits it, plain text elsewhere. When the shown text differs from the address and the terminal cannot link, the address follows in brackets so nothing is lost in logs.
Inheritance
- object
- LinkPresenter
Constructors
public LinkPresenter(Func<object?, string>? text = null, Func<object?, string>? address = null) #Creates a link presenter.
Parameters
- text System.Func<object?, string>? = null
- Picks the shown text from the value, or null to show the address.
- address System.Func<object?, string>? = null
- Picks the address from the value, or null to use the value itself.
Methods
public PresentedValue Present(object? value, PresenterContext context) #Presents a value.
Parameters
- value object?
- The raw value (may be null).
- context ConsoleMonster.Presenters.PresenterContext
- Culture, clock, time zone, column statistics and the render context.