Raxol.Terminal.Sync.Manager (Raxol v2.0.1)
View SourceManages synchronization between different terminal components (splits, windows, tabs). Provides a high-level interface for component synchronization and state management.
Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
Starts the sync manager.
Syncs a component's state with default options.
Syncs a component's state.
Types
@type component_id() :: String.t()
@type component_type() :: :split | :window | :tab
@type sync_state() :: %{ component_id: component_id(), component_type: component_type(), state: term(), metadata: %{ version: non_neg_integer(), timestamp: non_neg_integer(), source: String.t() } }
@type t() :: %Raxol.Terminal.Sync.Manager{ components: %{required(String.t()) => Raxol.Terminal.Sync.Component.t()}, sync_id: String.t() }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
Starts the sync manager.
Syncs a component's state with default options.
Syncs a component's state.