Raxol.Terminal.Selection.Manager (Raxol v0.5.0)
View SourceManages text selection operations in the terminal.
Summary
Functions
Ends the current selection.
Gets the selected text from the terminal buffer.
Gets the current selection range.
Includes scrollback buffer in selection.
Creates a new selection manager instance.
Checks if a position is within the current selection.
Checks if scrollback is included in selection.
Starts a new selection at the given position.
Updates the selection end position.
Types
@type position() :: {non_neg_integer(), non_neg_integer()}
@type selection_mode() :: :normal | :word | :line
@type t() :: %Raxol.Terminal.Selection.Manager{ active: boolean(), end_pos: position() | nil, mode: selection_mode(), scrollback_included: boolean(), start_pos: position() | nil }
Functions
Ends the current selection.
Gets the selected text from the terminal buffer.
Gets the current selection range.
Includes scrollback buffer in selection.
Creates a new selection manager instance.
Checks if a position is within the current selection.
Checks if scrollback is included in selection.
Starts a new selection at the given position.
Updates the selection end position.