struct

TermBuf::Link

Inherits Struct < Value < Object

Stability: stable — changes only in a major release.

A hyperlink a range of cells carries, as OSC 8 describes one.

id is the protocol's own grouping parameter, not this shard's. Two ranges sharing one are the same link as far as the terminal is concerned, which is what makes a link wrapped across two rows highlight as a whole rather than as two. Leaving it off tells the terminal to group adjacent cells only.

Constructors

new(uri : String, id : String | Nil = nil)
Source

Instance methods

id

The grouping parameter, or nil to let the terminal group by adjacency.

Source
parameters

The parameter field of the OSC 8 sequence, empty when there is no id.

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
uri

Where the link points.

Source