Raxol.Terminal.Modes.ModeStateManager (Raxol v0.5.0)
View SourceManages the state of terminal modes, including transitions and validation. Handles mode dependencies, conflicts, and state persistence.
Summary
Functions
Returns a specification to start this module under a supervisor.
Checks if a mode is enabled.
Creates a new mode state with default values.
Resets a mode to its default value.
Sets a mode to a specific value.
Starts the ModeStateManager process.
Types
@type t() :: %Raxol.Terminal.Modes.ModeStateManager{modes: term()}
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Checks if a mode is enabled.
@spec new() :: t()
Creates a new mode state with default values.
Resets a mode to its default value.
@spec set_mode(t(), atom(), Raxol.Terminal.Modes.Types.ModeTypes.mode_value()) :: {:ok, t()} | {:error, term()}
Sets a mode to a specific value.
Starts the ModeStateManager process.