Raxol.Terminal.ANSI.Mouse.Events (Raxol v2.0.1)

View Source

Handles mouse event reporting for the terminal emulator.

Summary

Functions

Decodes button state and modifiers from a mouse event byte.

Decodes modifier keys from a mouse event byte.

Disables mouse tracking.

Enables mouse tracking with the specified mode.

Generates a mouse event report based on the current state.

Creates a new mouse state with default values.

Processes a mouse event and returns the updated state and event data.

Updates the button state.

Updates the drag state.

Updates the modifiers state.

Updates the mouse position.

Functions

calculate_drag_state(arg1, arg2)

decode_button(button)

Decodes button state and modifiers from a mouse event byte.

decode_modifiers(button)

Decodes modifier keys from a mouse event byte.

disable(state)

Disables mouse tracking.

enable(state, mode)

Enables mouse tracking with the specified mode.

generate_all_report(state)

generate_basic_report(state)

generate_cell_report(state)

generate_focus_report(state)

generate_highlight_report(state)

generate_report(state)

Generates a mouse event report based on the current state.

generate_sgr_pixels_report(state)

generate_sgr_report(state)

generate_urxvt_report(state)

generate_utf8_report(state)

new()

Creates a new mouse state with default values.

parse_coordinates(rest)

parse_mouse_event(arg)

parse_sgr_pixels_event(arg)

parse_urxvt_event(arg)

process_event(state, arg)

Processes a mouse event and returns the updated state and event data.

update_button_state(state, button_state)

Updates the button state.

update_drag_state(state, drag_state)

Updates the drag state.

update_modifiers(state, modifiers)

Updates the modifiers state.

update_position(state, position)

Updates the mouse position.

update_state(state, event)