OscLink class final
A hyperlink, OSC 8: the text between an open and a close is what the
terminal makes clickable.
A url that is empty closes the link opened before it.
url is where the link points and nothing else. OSC 8 carries
parameters of its own between the introducer and the address — id=
above all, which is what tells a terminal that two pieces a line break cut
apart are one link — and those stay in string, the bytes the sequence
was written with, along with the terminator it was written with. Reading
them is reading string.
A link opened again elsewhere — by Parser.substring, by an insertion, by
a printer starting a new line — is written from string and not built
afresh from url, so the parameters and the form of the terminator travel
with it.
- Inheritance
-
- Object
- Entity
- EscapeCode
- ControlString
- Osc
- OscLink
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
What this code is called, as Parser.showControlFunctions writes it.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- string → String
-
The piece of the string this stands for, as it was written.
finalinherited
- terminated → bool
-
A
BELends anOSC— xterm's terminator, kept because the strings written with it are everywhere — where it ends no other control string.no setterinherited - url → String
-
The address the link points at, empty where the link is being closed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toStringAsControlCodes(
) → String -
The sequence with its control codes spelt out by their abbreviations:
[ESC][where the bytes are.inherited -
toStringAsEscapeSequences(
) → String -
The sequence read out as the standard reads it:
[CSI 4 CUU].inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited