Raxol.Terminal.Mouse.Manager (Raxol v0.5.0)
View SourceManages mouse events and tracking in the terminal, including button clicks, movement, and wheel events.
Summary
Functions
Disables mouse tracking.
Disables cell motion tracking.
Disables highlight tracking.
Disables pixel position tracking.
Disables SGR mode.
Disables URXVT mode.
Enables mouse tracking.
Enables cell motion tracking.
Enables highlight tracking.
Enables pixel position tracking.
Enables SGR mode.
Enables URXVT mode.
Checks if mouse tracking is enabled.
Gets the current button state.
Gets the current mouse tracking mode.
Gets the last known mouse position.
Creates a new mouse manager instance.
Resets the mouse manager to its initial state.
Updates the button state.
Sets the mouse tracking mode.
Updates the last known mouse position.
Types
@type button_state() :: :none | :left | :middle | :right | :wheel_up | :wheel_down
@type mouse_mode() :: :normal | :button_event | :any_event | :highlight_tracking
@type position() :: {non_neg_integer(), non_neg_integer()}
@type t() :: %Raxol.Terminal.Mouse.Manager{ button_state: button_state(), cell_motion_tracking: boolean(), enabled: boolean(), highlight_tracking: boolean(), last_position: position() | nil, mode: mouse_mode(), pixel_position_tracking: boolean(), sgr_mode: boolean(), tracking_enabled: boolean(), urxvt_mode: boolean() }
Functions
Disables mouse tracking.
Disables cell motion tracking.
Disables highlight tracking.
Disables pixel position tracking.
Disables SGR mode.
Disables URXVT mode.
Enables mouse tracking.
Enables cell motion tracking.
Enables highlight tracking.
Enables pixel position tracking.
Enables SGR mode.
Enables URXVT mode.
Checks if mouse tracking is enabled.
Gets the current button state.
Gets the current mouse tracking mode.
Gets the last known mouse position.
Creates a new mouse manager instance.
Resets the mouse manager to its initial state.
Updates the button state.
Sets the mouse tracking mode.
Updates the last known mouse position.