link method
text, or uri itself, as a hyperlink to uri (OSC 8) where the
terminal takes them, else the label alone; a message reads it back as
a span with that link.
Implementation
String link(Uri uri, [String? text]) {
final label = text ?? '$uri';
return _caps.hyperlinks ? '\x1B]8;;$uri\x1B\\$label\x1B]8;;\x1B\\' : label;
}