Raxol.Terminal.Hyperlink.Manager (Raxol v0.5.0)

View Source

Manages terminal hyperlinks and their states.

Summary

Functions

Clears the hyperlink state.

Creates a new hyperlink with the given parameters.

Gets the hyperlink ID.

Gets the hyperlink parameters.

Gets the current hyperlink state.

Gets the current hyperlink URL.

Checks if a hyperlink exists.

Checks if a hyperlink is active.

Checks if a hyperlink is being hovered.

Creates a new hyperlink manager instance.

Updates the hyperlink parameters.

Updates the hyperlink state.

Updates the hyperlink URL.

Types

t()

@type t() :: %Raxol.Terminal.Hyperlink.Manager{
  hyperlink_id: String.t() | nil,
  hyperlink_params: hyperlink_params(),
  hyperlink_state: hyperlink_state(),
  hyperlink_url: String.t() | nil
}

Functions

create_hyperlink(state, id, url, params \\ %{})

Creates a new hyperlink with the given parameters.

has_hyperlink?(state)

Checks if a hyperlink exists.

new()

Creates a new hyperlink manager instance.